juliemr / minijasminenode

A very bare-bones version of jasmine-node
MIT License
32 stars 21 forks source link

Feature request: Output formatting option to indicate success/failure of test spec #21

Open juliemr opened 10 years ago

juliemr commented 10 years ago

Copied from https://github.com/angular/protractor/issues/1001

I want to use the output text and copy/paste the output straight into a code review comments if there are errors, but color/coding doesn't show up in that case and the Failure information is not connected to the summary section.

So the feature request is to add an option which can help make output more readable (IMHO) by putting results in text in the summary section.

jasmineNodeOpts.showErrorsOnSpec=1 "Something describing my suite user should be able to use this option - FAILED" user can have a taco - SUCCESS"

And a more verbose inline option jasmineNodeOpts.showErrorsOnSpec=2 "Something describing my suite user should be able to use this option - FAILED Message: Expected 0 to be greater than 0. Stacktrace: Error: Failed expectation at null. (/Volumes/opt/src/dio/distillerizer/test/e2e/login-attempts.js:35:26) user can have a taco - PASSED"

juliemr commented 10 years ago

This is released for the jasmine1 branch in v1.1.0.