-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better console rendering allowing suites
Console rendering listens only to test start/done events, and not the hacky context push/pop events. It inspects the test on the start event and prints out any necessary contexts. This allows runner.js to run multiple files and produce sane output.
- Loading branch information
Showing
8 changed files
with
135 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
var test = require('../noodleTest')(); | |||
test.onFailureExitNonZero(); | |||
|
|||
test.context("Example Test Suite", function() { | |||
this.context("Example Sub-Context", function() { | |||
this.it("Basic Test Example", function(test) { | |||
test.assert(true); | |||
test.done(); | |||
}); | |||
}); | |||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,13 @@ | |||
var test = require('../noodleTest')(); | |||
test.onFailureExitNonZero(); | |||
|
|||
test.context("Example Test Suite", function() { | |||
this.context("Example Sub-Context", function() { | |||
this.it("Another Basic Test Example", function(test) { | |||
setTimeout(function(){ | |||
test.assert(true); | |||
test.done(); | |||
}, 2000); | |||
}); | |||
}); | |||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
var test = require('../noodleTest')(); | |||
test.onFailureExitNonZero(); | |||
|
|||
test.context("Example Test Suite", function() { | |||
this.context("Example Sub-Context", function() { | |||
this.it("A Failing Test Example", function(test) { | |||
test.assert(false); | |||
test.done(); | |||
}); | |||
}); | |||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters