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

Add test duration #333

Merged
merged 9 commits into from
Sep 21, 2024
Merged

Add test duration #333

merged 9 commits into from
Sep 21, 2024

Conversation

Chemaclass
Copy link
Member

@Chemaclass Chemaclass commented Sep 21, 2024

πŸ“š Description

Right now, you can see total exec time only at the end but not on the individual test level.

πŸ”– Changes

Display test runtime if BASHUNIT_SHOW_EXECUTION_TIME is enabled

βœ… To-do list

  • I updated the CHANGELOG.md to reflect the new feature or fix

πŸ–ΌοΈ Demo

BEFORE

Screenshot 2024-09-21 at 18 03 38 Screenshot 2024-09-21 at 18 03 58

AFTER

Screenshot 2024-09-21 at 18 01 26 Screenshot 2024-09-21 at 18 03 01

@Chemaclass Chemaclass added the enhancement New feature or request label Sep 21, 2024
@Chemaclass Chemaclass self-assigned this Sep 21, 2024
printf "%s | Total tests: %s\n" "$BASHUNIT_VERSION" "$total_tests"
printf "%s | Tests: ~%s\n" "$BASHUNIT_VERSION" "$total_tests"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reason: counting total tests is easy, but not the data providers. Therefore, I would like an overview of the number of tests. Still, I don't mind (at least for now) the exact consideration of data_provider level, especially considering that this might be performance-wise costly... so I would rather postpone this (if even needed).

Therefore, I added the ~ to clarify that this is an honest estimation.

@Chemaclass Chemaclass merged commit f80b6c0 into main Sep 21, 2024
7 checks passed
@Chemaclass Chemaclass deleted the feat/add-test-duration branch September 21, 2024 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants