Skip to content

testExplorer/go1.18: support running multiple subtests #1772

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

Open
firelizzard18 opened this issue Sep 10, 2021 · 0 comments
Open

testExplorer/go1.18: support running multiple subtests #1772

firelizzard18 opened this issue Sep 10, 2021 · 0 comments

Comments

@firelizzard18
Copy link
Contributor

CL 343883 has been merged and presumably will be available in Go 1.18. When the user is using Go 1.18, this should allow us to run multiple subtests simultaneously.

  • Given -run 'A/B|C/D'
  • Go ≤ 1.17 interprets this as "Match test A → subtest B|C → subtest D"
  • Go ≥ 1.18 should interpret this as "Match test A → subtest B or test C → subtest D"

Now that the precedence (at the top level) of alternation | is higher than the precedence of the test/subtest separator /, it is easy to construct a regex that will strictly match the requested tests and subtests (once 1.18 is released).

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

No branches or pull requests

3 participants