From 95ab05de25a32ceaff8ee3e2869638fabd6eff94 Mon Sep 17 00:00:00 2001 From: Alex Macleod Date: Tue, 27 Jun 2023 18:25:35 +0000 Subject: [PATCH] Fix compile-test under cargo nextest --- tests/compile-test.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/compile-test.rs b/tests/compile-test.rs index 13013f646..745faaddd 100644 --- a/tests/compile-test.rs +++ b/tests/compile-test.rs @@ -212,6 +212,15 @@ fn run_ui_cargo() { } fn main() { + // Support being run by cargo nextest - https://nexte.st/book/custom-test-harnesses.html + if env::args().any(|arg| arg == "--list") { + if !env::args().any(|arg| arg == "--ignored") { + println!("compile_test: test"); + } + + return; + } + set_var("CLIPPY_DISABLE_DOCS_LINKS", "true"); run_ui(); run_ui_toml();