Is there any

35 views
Skip to first unread message

ez1

unread,
Aug 14, 2017, 12:41:34 PM8/14/17
to Jasmine
Here is last lines of test output in jasmine:

.............


41 specs, 0 failures
Finished in 0.028 seconds


Here is last lines of test output from jest:
 PASS  ./get-hand-power-lib.spec.js
 PASS  ./test.spec.js
 PASS  ./get-hand-power.spec.js
 PASS  ./combinations-evaluator.spec.js
 PASS  ./sort.spec.js
 PASS  ./utils.spec.js

Test Suites: 7 passed, 7 total
Tests:       41 passed, 41 total
Snapshots:   0 total
Time:        1.217s

Is there any reporter so jasmine output will be same (how many tests/test suites/files and also colours).

I really enjoy jasmine speed, but is there anything so test output will be more human-readable?

I found this https://github.com/search?utf8=%E2%9C%93&q=jasmine+reporters&type= but I can't get what is needed (everything is about CI`s and html etcetera)

Gregg Van Hove

unread,
Aug 14, 2017, 1:17:19 PM8/14/17
to jasmi...@googlegroups.com
There are a number of community supported reporters including https://github.com/larrymyers/jasmine-reporters that plug into Jasmine's existing reporter infrastructure. You can also write your own custom reporter with the [add reporter](https://jasmine.github.io/api/edge/Env.html#addReporter) method. Reporters look like this: https://jasmine.github.io/api/edge/Reporter.html  You can have your custom reporter behave however you want.

What exactly do you need out of the output from Jest? I've found that usually the verboseness of output that looks like that makes it hard to find the actual errors in all of the noise, and I prefer the ..FF.... syntax for progress as the suite runs, as long as errors are actually printed out at the end.

Hope this helps. Thanks for using Jasmine!

- Gregg

--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jasmine-js+unsubscribe@googlegroups.com.
To post to this group, send email to jasmi...@googlegroups.com.
Visit this group at https://groups.google.com/group/jasmine-js.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages