Skip to content

Conversation

@Syeberman
Copy link

When there is a large number of tests with a single test failure, the "percentage tests successful" value rounds up to 100%. This can make it easy to miss that a test failed.

1121 of 1122 (100%) tests successful, 0 (0%) test skipped.

With this patch, the percentage successful value is always rounded towards 0%.

1121 of 1122 (99%) tests successful, 0 (0%) test skipped.

A similar issue occurs when a single test is skipped: the value is rounded down to 0%.

1121 of 1121 (100%) tests successful, 1 (0%) test skipped.

This patch rounds the percentage skipped value towards 100%.

1121 of 1121 (100%) tests successful, 1 (1%) test skipped.

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