-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds tests for loading reporters w/ relative/absolute paths (#2773)
* Adds tests for loading reporters w/ relative/absolute paths * Fixes the test based on CR * Replaces '+' with path.join()
- Loading branch information
1 parent
73929ad
commit 0a93024
Showing
2 changed files
with
53 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
var baseReporter = require('../../../lib/reporters/base'); | ||
module.exports = simplereporter; | ||
|
||
function simplereporter (runner) { | ||
baseReporter.call(this, runner); | ||
|
||
runner.on('suite', function (suite) { | ||
console.log('on(\'suite\') called'); | ||
}); | ||
|
||
runner.on('fail', function (test, err) { | ||
console.log('on(\'fail\') called'); | ||
}); | ||
|
||
runner.on('pass', function (test) { | ||
console.log('on(\'pass\') called'); | ||
}); | ||
|
||
runner.on('test end', function (test, err) { | ||
console.log('on(\'test end\') called'); | ||
}); | ||
|
||
runner.on('end', function () { | ||
console.log('on(\'end\') called'); | ||
}); | ||
} |
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