ci: Run cargo test with the --no-fail-fast flag (#635)

Since the CI runs all tests for all tokio crates, it is possible that a
sporadic failure in one crate can mask failures/successes of other
crates' tests.

Using the `--no-fail-fast` flag instructs cargo to run *all* tests
before failing the build. This will allow checking to see if any
relevant test cases still pass even if an unrelated test has failed.
This commit is contained in:
Ivan Petkov 2018-09-15 00:41:41 +00:00 committed by GitHub
parent aaa5adb7fd
commit 24dc85dc5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -16,4 +16,4 @@ install:
build: false
test_script:
- cargo test --all --target %TARGET%
- cargo test --all --no-fail-fast --target %TARGET%

View File

@ -76,7 +76,7 @@ script:
cargo check --all --exclude tokio-tls --target $TARGET
cargo check --tests --all --exclude tokio-tls --target $TARGET
else
cargo test --all
cargo test --all --no-fail-fast
# Disable these tests for now as they are buggy
#
# cargo test --features unstable-futures