I'm on Windows, and the following problem doesn't occur on Ubuntu(wsl)
When I run tests in test_add.py or toggle tests summary, it shows that no tests found.
I've looked through the source code and modified base.lua in neotest-python
Then I run tests again and got the following output:
It seems that the adapter splits the file path by \, but my file path contains only /
Then I modified the source code, changing this line
local elems = vim.split(file_path, Path.path.sep)
into
local elems = vim.split(file_path, "/")
Then tests summary shows all the tests correctly.