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

feature: add neotest-java to lang.java #1984

Open
1 task done
rcasia opened this issue Nov 9, 2023 · 0 comments
Open
1 task done

feature: add neotest-java to lang.java #1984

rcasia opened this issue Nov 9, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@rcasia
Copy link

rcasia commented Nov 9, 2023

Did you check the docs?

  • I have read all the LazyVim docs

Is your feature request related to a problem? Please describe.

I recently added the neotest-java adapter. Today I started using LazyVim and I wanted to try running tests in java. When I tried it I got a "No tests found" message.

Describe the solution you'd like

It would be nice to have neotest-java integrated to lang.java. (I found out LazyVim currently runs tests with mason as a workaround because there was no neotest adapter for java).

Describe alternatives you've considered

What's working for me now is to use the lang.java extra and having neotest-java as an user plugin.

-- ~/.config/nvim/lua/plugins/test.lua
return {
  { "rcasia/neotest-java" },
  {
    "nvim-neotest/neotest",
    opts = { adapters = { "neotest-java" },
    },
  },
}

Additional context

At present, neotest-java does not provide DAP support, but it will be implemented in the future.

@rcasia rcasia added the enhancement New feature or request label Nov 9, 2023
@rcasia rcasia changed the title feature: add neotest-java to feature: add neotest-java to lang-java Nov 9, 2023
@rcasia rcasia changed the title feature: add neotest-java to lang-java feature: add neotest-java to lang.java Nov 9, 2023
appelgriebsch added a commit to appelgriebsch/LazyVim that referenced this issue Dec 18, 2023
appelgriebsch added a commit to appelgriebsch/LazyVim that referenced this issue Dec 21, 2023
appelgriebsch added a commit to appelgriebsch/LazyVim that referenced this issue Dec 22, 2023
appelgriebsch added a commit to appelgriebsch/LazyVim that referenced this issue Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant