CI: Stop running ignored tests
Emmanuel Gil Peyrot
created 2 years ago
This got introduced in 2e3004f89e77e6f4dd0cc9cb228fb3e5233cd530, but
there should be no reason to run ignored tests; if they are #[ignore]
it’s probably for a good reason.
This is particularly annoying with doctests, where ignore is used to
explicitly highlight broken/untested code.
Thanks jonas’ for noticing!
Change summary
.forgejo/workflows/build.yaml | 4 ++--
.gitlab-ci.yml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
Detailed changes
@@ -33,7 +33,7 @@ jobs:
- name: Print versions
run: rustc --version; cargo --version
- name: Run tests
- run: cargo test --verbose --release -- --include-ignored
+ run: cargo test --verbose
- name: Run tests without default features
run: cargo test --verbose --no-default-features
env:
@@ -50,7 +50,7 @@ jobs:
- name: Print versions
run: rustc --version; cargo --version
- name: Run tests
- run: cargo test --verbose --release -- --include-ignored
+ run: cargo test --verbose
- name: Run tests without default features
run: cargo test --verbose --no-default-features
env:
@@ -31,7 +31,7 @@ variables:
.test:
stage: test
script:
- - cargo test --verbose --release -- --include-ignored
+ - cargo test --verbose
- cargo test --verbose --no-default-features
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'