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

Allow to run single test / pass arguments to test framework #216

Open
dos65 opened this issue Jul 16, 2021 · 2 comments
Open

Allow to run single test / pass arguments to test framework #216

dos65 opened this issue Jul 16, 2021 · 2 comments

Comments

@dos65
Copy link
Member

dos65 commented Jul 16, 2021

Based on this question: scalameta/metals#2972

Test frameworks accept arguments that are usually used for filtering tests.
For example:

  • ScalaTest: -t "test description"
  • Munit: --tests=$REGEXP

It would be nice to provide a way for passing these arguments from Metals.

It might be implemented as a command that shows an input box or a quickpick with previous runs arguments.

Search terms:
#tests

@tgodzik
Copy link
Contributor

tgodzik commented Jul 19, 2021

I think we might need to change the BSP implementation a bit to allow this. But later we could also provide code lenses for single test cases. Might not be that complicated.

@LaurenceWarne
Copy link

But later we could also provide code lenses for single test cases. Might not be that complicated.

I've been playing around with exposing individual tests using lenses based on some of the test discovery stuff:

lens-example

Nowhere near as cool as the vscode test discovery 😅, but on the other hand it doesn't really need anything special on the client if they already support dap.

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