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

[UI] Allow running individual tests/suites #6638

Closed
4 tasks done
maxpatiiuk opened this issue Oct 4, 2024 · 0 comments · Fixed by #6641
Closed
4 tasks done

[UI] Allow running individual tests/suites #6638

maxpatiiuk opened this issue Oct 4, 2024 · 0 comments · Fixed by #6641
Labels
feat: ui Vitest UI p2-nice-to-have Not breaking anything but nice to have (priority)

Comments

@maxpatiiuk
Copy link

Clear and concise description of the problem

At the moment, Vitest UI allows re-running all tests in a file.
However, it is commonly useful to re-run just a single test or a suite of tests.
The option to do so is currently disabled in the UI (as this capability is not yet implemented).

Suggested solution

On however on a test/suite in the sidebar, show a button to re-run a given test/suite.
This would be similar functionality to the "Testing" panel in VS Code.

Alternative

  • Run all tests in a file (slow if file has many tests)
  • Stop Vitest, and re-run it with -t 'somePattern' argument passed to run only matching tests (clunky)

Additional context

Original discussion: #5948 (comment)

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: ui Vitest UI p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants