Skip to content
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

Have a mode to print out a line for each test that's run #4

Closed
sophiebits opened this issue May 14, 2014 · 14 comments
Closed

Have a mode to print out a line for each test that's run #4

sophiebits opened this issue May 14, 2014 · 14 comments

Comments

@sophiebits
Copy link
Contributor

More fun that way (instead of just the filename).

@jeffmo
Copy link
Contributor

jeffmo commented May 14, 2014

I support this -- but it might be good to have it toggeable via an option to make grepping the output results still possible

@whymarrh
Copy link

I might not be talking about the same thing, but if I am I think this is a great idea. Printing out each test run (or at least having a verbose option) might make the use of the word "test" a bit clearer.

For example:

Found 2 matching tests...
PASS __tests__/foo.js (0.02s)
PASS __tests__/bar.js� (0.08s)
2 tests passed (2 total)
Run time: 1.236s

While there are 2 test files, some (including myself) might think of each it() call to be a test, in which case there is no way to see a list of all the tests being run. That or a test count:

Found 2 test files...
PASS __tests__/foo.js (4 tests in 0.02s)
PASS __tests__/bar.js� (21 tests in 0.18s)
25 tests passed (25 total)
Run time: 1.236s

@jakeboone02
Copy link
Contributor

Along these lines, it would also be nice to know how many x'd out tests there are (xit, xdescribe, etc.). x* doesn't cause a test file to fail, so if everything else about the file passes then it's essentially invisible in the test results.

I can think of a couple of cases where you'd want to know it was there, like if you temporarily disabled a failing test but forgot to reenable it later.

Adding to @whymarrh's example:

Found 2 test files...
PASS __tests__/foo.js (4 tests (2 skipped) in 0.02s)
PASS __tests__/bar.js (21 tests in 0.18s)
25 tests passed (25 total, 2 skipped)
Run time: 1.236s

Someone else could surely come up with a better way to display this information, but that should illustrate the point.

This might need a new issue.

@conatus
Copy link

conatus commented Apr 14, 2015

Coming from the Angular world this was a bit confusing to begin with. I also would like test to mean how many it() calls even if this isn't on by default.

@dtryon
Copy link

dtryon commented Apr 26, 2015

+1

5 similar comments
@zdfs
Copy link

zdfs commented Apr 30, 2015

+1

@doodledood
Copy link

+1

@pbojinov
Copy link

pbojinov commented May 5, 2015

+1

@brunops
Copy link

brunops commented May 8, 2015

+1

@arcin
Copy link
Contributor

arcin commented May 11, 2015

👍

@jaredly
Copy link

jaredly commented Jul 27, 2015

This was fixed by the --verbose option #370

@arush
Copy link

arush commented Sep 21, 2015

@jaredly is right, I think we can close this issue

@metaskills
Copy link

Not sure this was addressed. If I use verbose on some slow integration tests... it waits till all tests are run in that one file before it outputs the results. Is there a way to see each test as it passes in the suite/file?

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
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