VSCode support for test configuration for multiple files
norbo03 opened this issue · comments
Is your feature request related to a problem? Please describe.
When I want to configure custom JVM options for a test I can do that with launch.json and that works fine:
"configurations": [
{
"type": "scala",
"request": "launch",
"name": "Run Scala test with custom jvm args",
"testClass": "project/folder/test1.scala",
"jvmOptions": [
"--add-opens=java.base/java.nio=ALL-UNNAMED"
]
}
]
However, if I want to run multiple tests (or a whole module) with the same JVM configurations I need to create several configurations for the test classes and a compound section to run them together.
Describe the solution you'd like
A great and convenient solution would be if I could add a testFilter
option instead of testClass
where I can provide a regular expression to match the tests I want to configure. Like simply defining the module I'd like to test:
...
"testFilter": "project_root/module1/tests*",
...
Describe alternatives you've considered
An alternative solution would be changing testClass
in such a way that it accepts a list of test classes that the configuration is referring to(then also renaming it to testClasses
or something like that would be more intuitive).
Additional context
A nice to have would be if the configured tests would show up in the native Testing tab in VSCode.
Search terms
scala test configurations launch.json vscode multiple_tests