Open
Description
Field | Description |
---|---|
Plugin | neotest |
Nixpkgs | unstable |
Home Manager | unstable |
- [ X] I have read the FAQ and my bug is not listed there.
Description
Minimal, Reproducible Example (MRE)
programs.nixvim = {
plugins = {
treesitter = {
enable = true;
nixGrammars = true;
grammarPackages = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
python
];
};
neotest = {
enable = true;
adapters = {
python = {
enable = true;
settings = {
args = [
"--log-level"
"DEBUG"
];
};
};
};
};
};
}
# tests/test_foo.py
def test_foo():
print("hello world!")
Expected:
:Neotest run
and :Neotest summary
should pick up test_foo
Actual
Get no tests found
until I open tests/test_foo.py
in which case :Neotest summary
shows the correct directory stucture, but running with r
gives the error ENOENT: no such file or directory
.
Also posted here: nvim-neotest/neotest#474. Although I think this is an issue with neotest rather than nixvim I think it's a good idea to post this here too.