New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about output #32
Comments
jasmine-reporters can help you |
As @arusakov said, you should use a custom reporter. You can't set a custom reporter via the command line right now but you can write a bit of code to add a custom reporter. Something like this:
|
Thanks for the replies. Started using jasmine-reporters, this did got triggered to report the various states of specs, but still no output to be found. After some further testing i seem to have found a/my problem. If prevent the When i took a look at the ReportDispatcher and the dispatch method and added some logging i noticed that every var defaultOnComplete = function(passed) {
if(passed) {
exit(0);
}
else {
exit(1);
}
}; When i change the Am i missing some option/setting or is this a bug in the |
Yeah, the default onComplete was probably killing the process. You can override the onComplete now on the master branch by simply doing:
|
We haven't heard anything else on this from the community, and we think it is probably solved in the current codebase, so I'm going to close this for now. |
These examples show to create a custom runner but the problem with creating a custom runner is that debugging only works when having to type a Would be great if we could specify a custom reporter on the cli. i.e. |
@pflannery You should also be able to register a reporter in a helper file now. Hope this helps. |
Throwing a note in here for any other passers by who want to demystify "You should also be able to register a reporter in a helper file now".
jasmine.json
verbose.help.js
also a cli alternative
|
After trying to get jasmine-node to work and google-ing for all sorts of info about nodejs and jasmine-node i ran in to jasmine-npm and it just works :)
After combining it in to our build on a bamboo build server it sort of works, when i check the logs i see that non of my tests failed, but how can i change the output. Bamboo can handle test outputs in a junitreport format but how can i do this using jasmine-npm (if at all)?
The text was updated successfully, but these errors were encountered: