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

Recalculate suite duration only when it makes sense #55

Merged
merged 4 commits into from
Jun 6, 2022

Conversation

skipi
Copy link
Member

@skipi skipi commented Jun 6, 2022

This bug occurs when reconstructing test results from multiple files. In this case, each test suite is being created from scratch. As a result, CLI properly calculated the duration after adding the first test to the suite. However, any subsequent test addition didn't change the suite duration whatsoever(since we don't want to modify test-runner supplied durations when possible).

This PR introduces a check that ensures proper(larger) duration is used when merging multiple job files.

@skipi skipi requested a review from ralopes June 6, 2022 19:24
@skipi skipi force-pushed the mk/fix-aggregated-durations branch 4 times, most recently from 3b132c5 to 6587f8e Compare June 6, 2022 21:17
@skipi skipi force-pushed the mk/fix-aggregated-durations branch from 6587f8e to 42da893 Compare June 6, 2022 21:29
@skipi skipi force-pushed the mk/fix-aggregated-durations branch from 42da893 to 1260982 Compare June 6, 2022 21:33
@skipi skipi merged commit f7e0272 into master Jun 6, 2022
@skipi skipi deleted the mk/fix-aggregated-durations branch March 23, 2023 09:37
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.

1 participant