Skip to content

Update cargo.rs to allow debugging of integration test annotated with the ignore attribute#42574

Merged
osiewicz merged 2 commits intozed-industries:mainfrom
mikeHag:debug-ignored-test
Nov 13, 2025
Merged

Update cargo.rs to allow debugging of integration test annotated with the ignore attribute#42574
osiewicz merged 2 commits intozed-industries:mainfrom
mikeHag:debug-ignored-test

Conversation

@mikeHag
Copy link
Contributor

@mikeHag mikeHag commented Nov 12, 2025

Address #40429

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 "--include-ignored"

Closes #40429

Release Notes:

  • N/A

Address zed-industries#40429

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 "--include ignored"
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 12, 2025
@mikeHag mikeHag changed the title Update cargo.rs to debugging of integration test annotated with the ignore attribute Update cargo.rs to allow debugging of integration test annotated with the ignore attribute Nov 12, 2025
@osiewicz osiewicz merged commit 34a7cfb into zed-industries:main Nov 13, 2025
23 checks passed
@mikeHag mikeHag deleted the debug-ignored-test branch November 19, 2025 21:14
11happy pushed a commit to 11happy/zed that referenced this pull request Dec 1, 2025
… the ignore attribute (zed-industries#42574)

Address zed-industries#40429

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
"--include-ignored"

Closes zed-industries#40429

Release Notes:

- N/A
osiewicz pushed a commit that referenced this pull request Dec 1, 2025
…tially 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.
someone13574 pushed a commit to someone13574/zed that referenced this pull request Dec 16, 2025
…tially matches another test (zed-industries#43110)

Related: zed-industries#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Need a way to configure a single ignored Rust integration test to run in the debugger without removing or commenting the #[Ignore] attribute

2 participants