Skip to content

Add toggle test enabled/disabled code action#2731

Open
somiljain2006 wants to merge 1 commit into
swiftlang:mainfrom
somiljain2006:Toggle-test-states
Open

Add toggle test enabled/disabled code action#2731
somiljain2006 wants to merge 1 commit into
swiftlang:mainfrom
somiljain2006:Toggle-test-states

Conversation

@somiljain2006

Copy link
Copy Markdown
Contributor

Fixes #2524

Introduce a new refactoring that toggles Swift Testing @Test functions by adding or removing the .disabled() trait, and XCTest test methods by inserting or removing throw XCTSkip("Disabled") while preserving throws when still required. Add comprehensive tests covering both enable/disable flows, edge cases such as existing traits and remaining try expressions, and document the new refactoring in the available code actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Toggle disabled test

1 participant