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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Show progress of tests as they run #14836
Comments
Hi @Dreamsorcerer |
Anything that shows some progress while it's running would be an improvement. Displaying the results of each test as they complete though, can be more helpful, as you can figure out what test the runner is stuck on (particularly useful in weird edge cases where the runner itself ends up hanging and never completing). |
I see that it is better to add it at the end of the Test suite, as placing it next to each test can get confusing when several tests occur in parallel and so this percentage shows the percentage of all tests |
I think the request was for progress within a single test file, not the total (which we already have, albeit not as a percentage). So I think it should be next to a |
I misunderstood the original question. The percentage is really not important, you can do whatever you want to do with it (pytest does show the global percentage after each test, but is also, most often, run in a synchronous manner). The main point is that I should be able to see some output after each test, and can figure out which test the runner is stuck on if it were to freeze/crash. |
What if we were to add the 'X passed' field next to the path description indicating how many test were completed? |
Yeah, that looks good to me! Maybe out of a total per test file as well? I think we have this information available |
If you mean that the number is updated as each test passes (as opposed to a total shown at the end of the file run), then that's probably good enough. |
@SimenB It would be beneficial to display a percentage out of the total for each test file too but I couldn't locate any property that provides this value before or during the execution of the file. |
@SimenB @Dreamsorcerer |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
Up |
馃殌 Feature Proposal
Even with verbose enabled, Jest doesn't give any indication of progress through tests within a file while they are being run.
Motivation
If it's taking a long time for tests to complete, I have no indication how far through the tests it is, whether it's hanging on a particular test or just slowly progressing through tests.
Example
For comparison, pytest (the most popular test runner on Python projects) displays the result of each test as it runs, looking something like:
The text was updated successfully, but these errors were encountered: