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

Count tests in progress bar #1

Merged
merged 2 commits into from
Apr 8, 2024
Merged

Conversation

OutOfCache
Copy link
Contributor

Count tests instead of jobs.
Make the progress bar mandatory, so we can use
its position and length to keep track of the tests,
even if we do not output the bar.

Copy link
Owner

@Flakebi Flakebi left a comment

Choose a reason for hiding this comment

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

Nice, thanks.
One comment and the CI has some nits about style and formatting, otherwise LGTM

src/lib.rs Show resolved Hide resolved
If we do not want a progress bar, we can use `ProgressBar::hidden`.
Then we can still use the progress bar's position and length,
even in `print_progress`.
Copy link
Owner

@Flakebi Flakebi left a comment

Choose a reason for hiding this comment

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

Thanks!

@Flakebi Flakebi merged commit 45b9d73 into Flakebi:master Apr 8, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants