mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
tinytest!
This commit is contained in:
@@ -1,3 +1 @@
|
||||
exports.TinyTest = TinyTest = require 'tinytest/tinytest'
|
||||
|
||||
new TinyTest
|
||||
module.exports = require 'tinytest/tinytest'
|
||||
|
||||
@@ -3,17 +3,17 @@ _ = require 'underscore'
|
||||
|
||||
Pane = require 'pane'
|
||||
File = require 'fs'
|
||||
{activeWindow} = App = require 'app'
|
||||
Plugin = require 'plugin'
|
||||
|
||||
{CoffeeScript} = require 'coffee-script'
|
||||
|
||||
module.exports =
|
||||
class TinyTest extends Pane
|
||||
class TinyTest extends Plugin
|
||||
keymap: ->
|
||||
'Command-Ctrl-T': 'runTests'
|
||||
|
||||
runTests: ->
|
||||
_.map File.list(App.root + '/test'), @runTest
|
||||
_.map File.list(@window.path + '/test'), @runTest
|
||||
|
||||
runTest: (path) ->
|
||||
# Even though we already have the path, run it
|
||||
|
||||
Reference in New Issue
Block a user