diff options
| author | Phil Crosby | 2012-06-10 02:05:17 -0700 | 
|---|---|---|
| committer | Phil Crosby | 2012-06-10 02:05:17 -0700 | 
| commit | 2207fcf6a66b96536dd805b0b9c2f2825980bf63 (patch) | |
| tree | 0b0647e04cfb94c366997e524e4a1494acfc6b35 | |
| parent | e4f407af24524ef70b910ef18af1a4d14f829598 (diff) | |
| download | vimium-2207fcf6a66b96536dd805b0b9c2f2825980bf63.tar.bz2 | |
Run all tests from within the Cakefile. Not sure why I used a subprocess before.
Maybe to make any stacktraces thrown by tests shorter.
| -rw-r--r-- | Cakefile | 5 | ||||
| -rw-r--r-- | tests/completion_test.coffee | 2 | 
2 files changed, 2 insertions, 5 deletions
| @@ -9,6 +9,5 @@ task "test", "run all unit tests", ->    # Run running the command `node tests/*_test.js`.    test_files = fs.readdirSync("tests/").filter((filename) -> filename.indexOf("_test.js") > 0)    test_files = test_files.map((filename) -> "tests/" + filename) -  node = spawn "node", test_files -  node.stdout.on "data", (data) -> console.log data.toString().trim() -  node.stderr.on "data", (data) -> console.log data.toString().trim() +  test_files.forEach (file) -> require "./" + file +  Tests.run() diff --git a/tests/completion_test.coffee b/tests/completion_test.coffee index a46dbbf2..e27a188f 100644 --- a/tests/completion_test.coffee +++ b/tests/completion_test.coffee @@ -163,5 +163,3 @@ filterCompleter = (completer, queryTerms) ->    results  hours = (n) -> 1000 * 60 * 60 * n - -Tests.run()
\ No newline at end of file | 
