From da166ce3c6b726ac5bd93779210c2ec607f0baf6 Mon Sep 17 00:00:00 2001 From: Thomas Zahner Date: Fri, 23 May 2025 14:54:46 +0200 Subject: [PATCH] Fix `test_exclude_example_domains` (#1712) * Configure test with the right feature flag * Remove test exclusion, because test is now properly configured --- Makefile | 4 ++-- lychee-bin/tests/example_domains.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 25efa4e..17cca4c 100644 --- a/Makefile +++ b/Makefile @@ -45,8 +45,8 @@ lint: ## Run linter .PHONY: test test: ## Run tests - cargo nextest run --all-targets --all-features --filter-expr '!test(test_exclude_example_domains)' - cargo nextest run --filter-expr 'test(test_exclude_example_domains)' + cargo nextest run --all-targets --all-features + cargo nextest run cargo test --doc .PHONY: doc diff --git a/lychee-bin/tests/example_domains.rs b/lychee-bin/tests/example_domains.rs index 819b745..5124911 100644 --- a/lychee-bin/tests/example_domains.rs +++ b/lychee-bin/tests/example_domains.rs @@ -26,6 +26,7 @@ mod cli { } #[test] + #[cfg(not(feature = "check_example_domains"))] fn test_exclude_example_domains() -> Result<()> { let mut cmd = main_command(); let input = fixtures_path().join("TEST_EXAMPLE_DOMAINS.md");