tinytest!

This commit is contained in:
Corey Johnson
2011-09-22 17:05:32 -07:00
parent 3b5984c3f7
commit 62a5074edd
2 changed files with 4 additions and 6 deletions

View File

@@ -1,3 +1 @@
exports.TinyTest = TinyTest = require 'tinytest/tinytest'
new TinyTest
module.exports = require 'tinytest/tinytest'

View File

@@ -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