mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-18 03:23:42 -05:00
Add option to print current spec name to jasmine
This commit is contained in:
parent
1d616cd92a
commit
d7209d784e
1 changed files with 9 additions and 0 deletions
|
@ -49,6 +49,15 @@ console.error = function() {
|
||||||
console.log.apply(console, arguments);
|
console.log.apply(console, arguments);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (process.argv.indexOf('--with-test-names') > -1) {
|
||||||
|
jasmine.getEnv().addReporter({
|
||||||
|
specStarted: function(result){
|
||||||
|
// Printing weirdly so pass/fail indicator is on the same line as the test name
|
||||||
|
process.stdout.write('\n' + result.fullName);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
var initialized = false;
|
var initialized = false;
|
||||||
beforeEach(function(done) {
|
beforeEach(function(done) {
|
||||||
if (initialized) {
|
if (initialized) {
|
||||||
|
|
Loading…
Reference in a new issue