From 9e0788253147a7d2d4323417e0b36b0e81c94a24 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 24 Jun 2024 10:58:45 +0200 Subject: [PATCH] CI: Stop running ignored tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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! --- .forgejo/workflows/build.yaml | 4 ++-- .gitlab-ci.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index ed0968fe..8a9fb52b 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -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: diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 35a7e5ed..3be4ed86 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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'