Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

print out test pass / failures after every test #78

Open
jamesaspence opened this issue Mar 22, 2018 · 3 comments
Open

print out test pass / failures after every test #78

jamesaspence opened this issue Mar 22, 2018 · 3 comments

Comments

@jamesaspence
Copy link

This is a feature request.

I've noticed that, for longer tests, the output will sit and you won't know what is causing a hang up or not. It'd be nice if this reporter logged each test success/failure in the suite as it happened, rather than after the entire test suite is run.

@christian-bromann
Copy link
Contributor

@jamesaspence can you describe your request in a little bit more detail?

@jamesaspence
Copy link
Author

jamesaspence commented Mar 23, 2018

Sure, sorry.

When running tests, you'll get output like the following:

[chrome #0-0] Session ID: 043cfe2dab6ef183ffcf666e785a54d6
[chrome #0-0] Spec: /Users/jamesspence/projects/test-site/articles.js
[chrome #0-0] Running: chrome
[chrome #0-0]
[chrome #0-0] Test "Articles Landing" page
[chrome #0-0]   ✓ Checking for existing components
[chrome #0-0]   ✓ Checking that filters work correctly
[chrome #0-0]
[chrome #0-0]
[chrome #0-0] 2 passing (20s)

This is great - very clear what is passing or failing.

However, this output only appears after the entire test spec has run. We have a test spec that runs several dozen it statements (basically testing a bunch of different pages for a generic error). In that case, you get zero output until every single test has wrapped up.

What I'd like is for the above output to appear as these individual tests succeed / fail. i.e., in the above example, I'd like to see [chrome #0-0] ✓ Checking for existing components as soon as that individual test is complete, rather than waiting for the whole spec.

@christian-bromann
Copy link
Contributor

@jamesaspence feel free to propose a PR that provides this behavior if a certain option is given

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants