327e829c15
fix(neotest): properly initialize adapter with call table. Fixes #4538
2024-10-04 23:50:15 +02:00
e5e8d7a805
fix(neotest): support adapter key on adapter for playwright ( #3824 )
...
## What is this PR for?
Similar to https://github.com/LazyVim/LazyVim/issues/847 , only this
adapter adds a setup function into the 'adapter' key in the plugin table
([source](f61463f5c7/lua/neotest-playwright/init.lua (L31-L33)
)).
It is somewhat annoying that neotest does not provide a recommended way
for adapters to define their configuration function (at least not
explicitly)...
Perhaps we should work around it temporarily, but reach out to either
neotest or neotest-playwright authors?
## Does this PR fix an existing issue?
I didn't see anyone complaining about playwright adapter in issues or
discussions :/
## Checklist
- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md )
guidelines.
2024-06-27 16:04:26 +02:00
55464b77c6
feat(go): switch to neotest-golang ( #3749 )
...
## What is this PR for?
This PR switches
[nvim-neotest/neotest-go](https://github.com/nvim-neotest/neotest-go )
for
[fredrikaverpil/neotest-golang](https://github.com/fredrikaverpil/neotest-golang ).
## Does this PR fix an existing issue?
Neotest-go comes with some problems which are mitigated in
neotest-golang. A full description/background is available in the
project README, but here are some highlights:
### Neotest-go issues mitigated in neotest-golang
- Test Output in JSON, making it difficult to read:
[neotest-go#52](https://github.com/nvim-neotest/neotest-go/issues/52 )
- "Run nearest" runs all tests:
[neotest-go#83](https://github.com/nvim-neotest/neotest-go/issues/83 )
- Running test suite doesn't work:
[neotest-go#89](https://github.com/nvim-neotest/neotest-go/issues/89 )
- Diagnostics for table tests on the line of failure:
[neotest-go#75](https://github.com/nvim-neotest/neotest-go/issues/75 )
- Support for Nested Subtests:
[neotest-go#74](https://github.com/nvim-neotest/neotest-go/issues/74 )
- DAP support:
[neotest-go#12](https://github.com/nvim-neotest/neotest-go/issues/12 )
### Features
- Supports all [Neotest
usage](https://github.com/nvim-neotest/neotest#usage ).
- Integrates with [nvim-dap-go](https://github.com/leoluz/nvim-dap-go )
for debugging of tests using delve.
- Inline diagnostics.
- Works great with
[andythigpen/nvim-coverage](https://github.com/andythigpen/nvim-coverage )
for displaying coverage in the sign column (per-Go package, or per-test
basis).
- Monorepo support (detect, run and debug tests in sub-projects).
- Supports table tests (relies on treesitter AST detection).
- Supports nested test functions.
## Notes
- I'm the author of
[fredrikaverpil/neotest-golang](https://github.com/fredrikaverpil/neotest-golang ).
## Checklist
- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md )
guidelines.
2024-06-23 07:01:22 +02:00
8010f50aa5
fix(which-key): use new which-key support for native group keymaps (nop)
2024-06-06 10:46:56 +02:00
4d1629605b
feat(keymaps): add neotest toggle watch keymap ( #3073 )
2024-06-05 23:46:21 +02:00
ef3bd3bd02
feat(extras): tags some extras as recommended
2024-05-18 14:12:26 +02:00
7a5dbeae75
feat: use LazyVim everywhere instead of require("lazyvim.util")
2024-03-22 09:15:09 +01:00
3a87c08cda
feat: use vim.uv
everywhere instead of vim.loop
2024-03-22 09:02:34 +01:00
393a9c7c7a
fix(neotest): add required nvim-nio to test and dap extra (neotest and nvim-dap-ui respectively) ( #2763 )
...
* Adding required nvim-nio to neotest in test-core
neotest now requires nvim-neotest/nvim-nio to be
installed as per BREAKING CHANGE: https://github.com/nvim-neotest/neotest/pull/337
* Adding nvim-nio as dependency
nvim-dap-ui now requires nvim-neotest/nvim-nio as a dependency as of recent changes
2024-03-19 22:02:22 +01:00
b71feb7e45
feat(test): Add <leader>tl to neotest.run_last() ( #1968 )
2024-01-21 19:37:38 +01:00
2e308d5440
fix(neotest): better integration with trouble: no longer steals focus and hides when all ok
2023-10-18 00:04:28 +02:00
0e671ad7fa
fix(neotest): properly detect __call. Fixes #847
2023-05-28 12:52:22 +02:00
a866c6801d
fix(neotest): removed <leader>tR
in favor of <leader>tt
2023-05-28 11:07:02 +02:00
efc72b0649
feat(neotest): added <leader>tt
and <leader>tT
to run tests in file or all test files
2023-05-27 09:37:55 +02:00
2a3bac7690
fix(neotest): support neotest adapaters that use setup()
for custom setup
2023-05-27 09:37:17 +02:00
98e2ffcf14
feat(neotest): allow adapter names as a list
2023-05-27 09:36:52 +02:00
2c89770504
feat(noetest): open trouble instead of quickfix on errors when available
2023-05-27 09:36:29 +02:00
bf66e71adc
fix(neotest): pass opts to neotest
2023-05-23 14:07:11 +02:00
cd96e3d9e5
refactor(neotest): better way to pass custom options for adapters
2023-05-23 13:00:15 +02:00
7443effe26
feat(test): added easy way to configure adapters
2023-05-22 21:31:12 +02:00
bb0d4d4e7d
feat(tests): added neotest ( #642 )
...
* feat(tests): adds test management
* refactor(tests): pr changes
* fix(tests): make dap keybind optional based on nvim-dap existence
2023-05-22 20:57:15 +02:00