Skip to content

Commit

Permalink
Output verbose log
Browse files Browse the repository at this point in the history
  • Loading branch information
sideroad committed Dec 16, 2012
1 parent cff9660 commit ab068ab
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grunt-testem",
"description": "A grunt plugin for testem.",
"version": "0.2.5",
"version": "0.2.9",
"homepage": "https://github.com/sideroad/grunt-testem",
"author": "sideroad <sideroad.jp@gmail.com> (http://sideroad.secret.jp/)",
"repository": {
Expand Down Expand Up @@ -35,13 +35,13 @@
"grunt": "~0.3.8",
"async" : "~0.1.22",
"underscore" : "~1.4.2",
"testem-multi" : "~0.0.8"
"testem-multi" : "~0.1.0"
},
"devDependencies": {
"grunt": "~0.3.8",
"async" : "~0.1.22",
"underscore" : "~1.4.2",
"testem-multi" : "~0.0.8"
"testem-multi" : "~0.1.0"
},
"keywords": [
"gruntplugin","grunt","grunt","testem"
Expand Down
6 changes: 5 additions & 1 deletion tasks/testem.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ module.exports = function(grunt) {
data.files = grunt.file.expandFiles(data.files);

grunt.log.writeln('Now testing...');
testemMulti.exec(data, function( results, memo ){
testemMulti.exec(data);
testemMulti.on('data', function( data ){
grunt.verbose.ok(''+data);
});
testemMulti.on('exit', function( results, memo ){
var tests = memo.tests,
pass = memo.pass,
not = memo.not,
Expand Down
16 changes: 8 additions & 8 deletions tests.tap
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,42 @@ TAP version 13
ok 1 - examples/1.html - Firefox test module: hello test
not ok 2 - examples/1.html - Firefox test module: fail test
---
message: Will failed!
message: "Will failed!"
...
ok 3 - examples/1.html - Firefox test module2: hello test
not ok 4 - examples/1.html - Firefox test module2: fail test
---
message: Will failed!
message: "Will failed!"
...
ok 5 - examples/1.html - Safari test module: hello test
not ok 6 - examples/1.html - Safari test module: fail test
---
message: Will failed!
message: "Will failed!"
...
ok 7 - examples/1.html - Safari test module2: hello test
not ok 8 - examples/1.html - Safari test module2: fail test
---
message: Will failed!
message: "Will failed!"
...
ok 9 - examples/2.html - Firefox test module: hello test
not ok 10 - examples/2.html - Firefox test module: fail test
---
message: Will failed!
message: "Will failed!"
...
ok 11 - examples/2.html - Firefox test module2: hello test
not ok 12 - examples/2.html - Firefox test module2: fail test
---
message: Will failed!
message: "Will failed!"
...
ok 13 - examples/2.html - Safari test module: hello test
not ok 14 - examples/2.html - Safari test module: fail test
---
message: Will failed!
message: "Will failed!"
...
ok 15 - examples/2.html - Safari test module2: hello test
not ok 16 - examples/2.html - Safari test module2: fail test
---
message: Will failed!
message: "Will failed!"
...

1..16
Expand Down

0 comments on commit ab068ab

Please sign in to comment.