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

test case code lens runs all the tests #659

Open
Heikmike opened this issue Apr 2, 2024 · 0 comments
Open

test case code lens runs all the tests #659

Heikmike opened this issue Apr 2, 2024 · 0 comments

Comments

@Heikmike
Copy link

Heikmike commented Apr 2, 2024

Bug description

The test case code lens runs all the tests instead of the specific one. Same for debug test case.

Reproduction steps

  1. Create a new project with sbt new scala/scala3.g8
  2. Build the project and wait for the code lenses to appear
  3. Add a new test to src/test/scala/MySuite.scala to have two tests (to see that indeed several tests run instead of just one)
  4. Run the test case code 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

4f9bf0c

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

1 participant