Code Monkey home page Code Monkey logo

Comments (14)

metaskills avatar metaskills commented on May 7, 2024 28

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?

from jest.

jaredly avatar jaredly commented on May 7, 2024 6

This was fixed by the --verbose option #370

from jest.

jeffmo avatar jeffmo commented on May 7, 2024 1

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

from jest.

whymarrh avatar whymarrh commented on May 7, 2024

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

from jest.

jakeboone02 avatar jakeboone02 commented on May 7, 2024

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.

from jest.

conatus avatar conatus commented on May 7, 2024

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.

from jest.

dtryon avatar dtryon commented on May 7, 2024

+1

from jest.

zdfs avatar zdfs commented on May 7, 2024

+1

from jest.

doodledood avatar doodledood commented on May 7, 2024

+1

from jest.

pbojinov avatar pbojinov commented on May 7, 2024

+1

from jest.

brunops avatar brunops commented on May 7, 2024

+1

from jest.

arcin avatar arcin commented on May 7, 2024

👍

from jest.

arush avatar arush commented on May 7, 2024

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

from jest.

github-actions avatar github-actions commented on May 7, 2024

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.

from jest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.