Comments (14)
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.
This was fixed by the --verbose
option #370
from jest.
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.
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.
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.
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.
+1
from jest.
+1
from jest.
+1
from jest.
+1
from jest.
+1
from jest.
👍
from jest.
@jaredly is right, I think we can close this issue
from jest.
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)
- [Feature]: Expose more information in JSON results when there is a suite-level error
- [Feature]: Including the Hooks in the jest.retryTimes
- [Feature]: testEnvironment per file type HOT 1
- [Bug] `URLSearchParams.delete` Execution results differ HOT 1
- [Bug]: expect URL objects are compared by href HOT 1
- [Bug]: Asymmetric matchers in error of observable are timing out instead of failing
- [Feature]: support biome for jest-snapshot formatting
- [Feature]: Dynamic test retries based on error messages
- [Bug]: mocking a function which is dereferenced using require syntax doesnt get mocked
- [Bug]: getState from jest-circus gets state from parellel environment HOT 1
- [Docs]: repetitive sentences
- TypeError: Cannot read properties of undefined (reading '__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED') who can help me ? HOT 1
- [Feature]: Add a "toHaveBeenCalledExactlyOnceWith" assertion (name TBD) HOT 1
- [Bug]: isolateModules doesn't work properly with auto mocked modules (reopen #14443)
- jest doesn't work with virtual driver created with subst on Windows HOT 3
- [Bug]: jest isolation conflicts with better-sqlite3 native modules
- [Bug]: Native fetch Arrays Incorrectly Matched
- TypeError: Cannot read properties of undefined (reading 'data') HOT 1
- [Feature]: Update deprecated subdependencies: [email protected], [email protected] in @jest/types HOT 1
- TypeError: Cannot read properties of undefined (reading 'data')
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jest.