Jest: Show test cases progress for each test case

Created on 24 Jul 2017  路  1Comment  路  Source: facebook/jest

Do you want to request a feature or report a bug?
bug

What is the current behavior?
Test progress is shown only when all suit test cases are processed.
For example suit contains 2 test cases. Each case takes ~5s. Results will appear only after ~12s for all cases

PASS src\tests\delete-tickets-from-purchase.js (12.747s)
鈭氣垰 delete all tickets from purchase (5314ms)
鈭氣垰 delete specified ticket from purchase (5121ms)

This behavior is reproduced for all cases with noticeable process time.

What is the expected behavior?
Show test case result immediately when it was processed rather when show all results in the end of suit execution

Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.

Operation system Windows 10
Jest 20.0.4
node 7.0.0
Jest config
{ "testRegex": ".\/ticketing-integration-tests\/src\/tests\/.*.js", "setupTestFrameworkScriptFile": "<rootDir>/ticketing-integration-tests/src/setup.js", "rootDir": "..", "verbose": true, "roots": [ "<rootDir>/ticketing-integration-tests/src/" ], "testEnvironment": "jsdom", "testResultsProcessor": "<rootDir>/ticketing-integration-tests/src/results-processor", "transform": { "\\.(gql|graphql)" :"jest-transform-graphql", "^.+\\.js$": "babel-jest" } }
run tests script jest --runInBand --forceExit --config=jest.json

I tried to use all combinations of notify and verbose settings.

>All comments

This is not a bug, this is how Jest works. We only report the full status of a test once the entire test has passed. I don't think we'll change this behavior anytime soon.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

timoxley picture timoxley  路  76Comments

udbhav picture udbhav  路  236Comments

calebmer picture calebmer  路  72Comments

benmonro picture benmonro  路  119Comments

vitalibozhko picture vitalibozhko  路  138Comments