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

Show execution time of whole test class #284

Open
dbardbar opened this issue Sep 5, 2022 · 3 comments
Open

Show execution time of whole test class #284

dbardbar opened this issue Sep 5, 2022 · 3 comments
Assignees
Labels

Comments

@dbardbar
Copy link

dbardbar commented Sep 5, 2022

Description

Add ability to show execution time of whole test class.

Additional information

Showing test class time has several benefits:

  1. Show full execution time, including time spent in @BeforeAll or @afterall
  2. Ability to see at high-level where time is wasted, especially if having hundreds of tests, spread over several test classes. Looking at the high-level per-class time helps to find and optimize test run time.
@radarsh
Copy link
Owner

radarsh commented Sep 5, 2022

I've been thinking of an idea to print the top-5 or top-n slow tests across the whole project. This along with a few other metrics could form a statistics summary.

@giriprashant7891
Copy link

I would also appreciate this feature. Currently, I'm unable to track the time taken by Springboot to initiate the context for the class, as the tracking is only done at a test level. If we are able to track at the class level, along with the initialization time, that would be fantastic!

@renoth
Copy link

renoth commented Aug 22, 2024

This is absolutely necessary to find the slow tests in a project, otherwise the duration metric is not very useful for tests with long setup times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants