You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command cargo test --test example -- -n="fail on skipped" will fail with exit code 101
However cargo test --test example -- -n="fail on skipped" --retry=1 will exit with status code 0
Also short summary doesn't mention anything about failing tests.
The text was updated successfully, but these errors were encountered:
serzhshakur
changed the title
Cargo run doesn't fail on skipped step if executed with retries
Cargo command doesn't fail on skipped step if executed with retries
Dec 2, 2022
@ilslv it seems that runner finishes before the test is retried. Could you look into it?
It's also not the first time when something like this happens (it may be a related bug). We definitely need a rich set of test cases for feature (not Cargo features) combinations (now we test them mostly separately), maybe as a separate PR.
The
cargo test
command doesn't fail on skipped steps if ran with retries (see picture)Checkout this repo
The command
cargo test --test example -- -n="fail on skipped"
will fail with exit code 101However
cargo test --test example -- -n="fail on skipped" --retry=1
will exit with status code 0Also short summary doesn't mention anything about failing tests.
The text was updated successfully, but these errors were encountered: