-
-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Description
Bug description
The test case code lens runs all the tests instead of the specific one. Same for debug test case.
Reproduction steps
- Create a new project with
sbt new scala/scala3.g8 - Build the project and wait for the code lenses to appear
- Add a new test to
src/test/scala/MySuite.scalato have two tests (to see that indeed several tests run instead of just one) - Run the
test casecode lens of one of the two tests
Dap configuration
local dap = require("dap")
dap.configurations.scala = {
{
type = "scala",
request = "launch",
name = "RunOrTest",
metals = {
runType = "runOrTestFile",
--args = { "firstArg", "secondArg", "thirdArg" }, -- here just as an example
},
},
}
Expected behavior
Only have the test related test case code lens to run.
Operating system
Linux
Version of Metals
1.2.2
Commit of nvim-metals
Reactions are currently unavailable