If you are here it means you are interested in contributing. Thank you for your help! 🎊
If you are considering to open a pull request for a little change, feel free do it straight forward. For larger changes, it is a good idea to open an issue first describing the feature idea or bug.
For the PRs to succeed and be merged you are expected to:
- have read this doc
- run the formatter before every commit
- to avoid duplicated work, open a draft PR as soon as you get to work
You will need to have installed:
- Java JDK 17 or 21
- This list of commands available in your terminal:
stylua
make
git
The first step to setup your enviroment is to type:
make
This command will:
- clone neotest, plenary and nvim-treesitter
- install the java parser for nvim-treesitter
- build the java projects (it is expected to have some failing test)
- run neotest-java tests
A. Using neotest-plenary.
Note: For the moment, you will need to specify the path to
.../neotest-java/tests/testrc.vim
in the neotest-plenary configuration. See nvim-neotest/neotest-plenary#13
B. From terminal
- Run all tests (for lua changes):
make test
- Run all tests (for lua and java changes):
make clean && make
- Run a test file:
./scripts/test [path-to-test-file]