Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test grouping #31

Merged
merged 3 commits into from
Jul 31, 2020
Merged

Test grouping #31

merged 3 commits into from
Jul 31, 2020

Conversation

andrewbridge
Copy link
Contributor

@andrewbridge andrewbridge commented Jul 31, 2020

This PR implements pattern grouping to provide custom group suites to better organise tests. This additive change now allows the searchPatterns setting to accept an object or nested search patterns, for example:

{
    "Unit Tests": ["src/**/UnitTests.dll", "tests/**/UnitTests.dll"],
    "Integration Tests": "src/**/IntegrationTests.dll",
    "Acceptance Tests": "src/**/AcceptanceTests.{dll,exe}"
}

As shown in the example, nested patterns may still be an array of separate glob patterns or a single glob pattern string. The above would produce the following view in test explorer:

Example result

This PR also fixes a state management bug caused by cancelling a test run (#30) and aligns file watchers set after discovery to use VSCode's relative search pattern interface.

Fixes #23
Fixes #30

@andrewbridge andrewbridge requested a review from m17kea July 31, 2020 13:23
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.

Cancelling a test run does not correctly handle summary state Add group level suites
2 participants