From 6eb9f9add7d82a10ff9a05dfcd2a1cf355da9328 Mon Sep 17 00:00:00 2001 From: mikeHag <36011050+mikeHag@users.noreply.github.com> Date: Mon, 1 Dec 2025 17:28:37 -0500 Subject: [PATCH] Debug a test annotated with the ignore attribute if the test name partially matches another test (#43110) Related: #42574 If an integration test is annotated with the ignore attribute, allow the "debug: Test" option of the debug scenario or Code Action to run with the "--include-ignored" and "--exact" arguments. Inclusion of "--exact" covers the case where more that one test shares a base name. For example, consider two tests named "test_no_ace_in_middle_of_straight" and "test_no_ace_in_middle_of_straight_flush." Without the "--exact" argument both tests would run if a user attempts to debug "test_no_ace_in_middle_of_straight". Release Notes: - Improved "debug test" experience in Rust with ignored tests. --- crates/project/src/debugger/locators/cargo.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/project/src/debugger/locators/cargo.rs b/crates/project/src/debugger/locators/cargo.rs index 0633f4881b33c096da1dddb59f1cfa11a39e4849..1bafd256ad8589e354b0df332715904914d608dd 100644 --- a/crates/project/src/debugger/locators/cargo.rs +++ b/crates/project/src/debugger/locators/cargo.rs @@ -206,6 +206,7 @@ impl DapLocator for CargoLocator { args.push("--nocapture".to_owned()); if is_ignored { args.push("--include-ignored".to_owned()); + args.push("--exact".to_owned()); } }