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");