From e8a7e5dc2743a3c12da9665d931f4649dff8df00 Mon Sep 17 00:00:00 2001 From: Kaur Kuut Date: Wed, 27 Nov 2024 12:01:17 +0200 Subject: [PATCH] Add a dummy test to satisfy `nextest`. (#66) Keeps the CI functioning with test running assurances. --- .github/workflows/ci.yml | 2 +- src/lib.rs | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15d6f65..15e1f6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -174,7 +174,7 @@ jobs: save-if: ${{ github.event_name != 'merge_group' }} - name: cargo nextest - run: cargo nextest run --workspace --locked --all-features --no-fail-fast --no-tests=pass + run: cargo nextest run --workspace --locked --all-features --no-fail-fast - name: cargo test --doc run: cargo test --doc --workspace --locked --all-features --no-fail-fast diff --git a/src/lib.rs b/src/lib.rs index 651bb0b..037a230 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,3 +47,11 @@ pub use font::Font; pub use gradient::{ColorStop, ColorStops, ColorStopsSource, Gradient, GradientKind}; pub use image::{Format, Image}; pub use style::{Fill, Style, StyleRef}; + +#[cfg(test)] +mod tests { + // CI will fail unless cargo nextest can execute at least one test per workspace. + // Delete this dummy test once we have an actual real test. + #[test] + fn dummy_test_until_we_have_a_real_test() {} +}