Skip to content

MTP: Test summary is displaying all classes in the test project even if they contain no tests #33

@waynebowie99

Description

@waynebowie99

Creating any class that does not have a test in it still shows in the test summary. The test shows as skipped in the logs if you try to run it. The directory shows as having an error. From looking at the logs, it looks like these files are correctly being parsed with no tests found

DEBUG | 2025-07-31T09:59:13Z-0500 | ...vim-data/lazy/neotest-vstest/lua/neotest-vstest/init.lua:392 | neotest-vstest: no tests found for file C:\Users\wayneb\source\repos\vstest\vstest.tests\NoTestDir\NoTests.cs
INFO | 2025-07-31T09:59:13Z-0500 | ...Local/nvim-data/lazy/neotest/lua/neotest/client/init.lua:302 | No positions found in C:\Users\wayneb\source\repos\vstest\vstest.tests\NoTestDir\NoTests.cs
DEBUG | 2025-07-31T09:59:13Z-0500 | ...vim-data/lazy/neotest-vstest/lua/neotest-vstest/init.lua:305 | neotest-vstest: top-level tests in file: C:\Users\wayneb\source\repos\vstest\vstest.tests\vstest.tests.csproj
INFO | 2025-07-31T09:59:13Z-0500 | ...Local/nvim-data/lazy/neotest/lua/neotest/client/init.lua:302 | No positions found in C:\Users\wayneb\source\repos\vstest\vstest.tests\vstest.tests.csproj
DEBUG | 2025-07-31T09:59:13Z-0500 | ...cal/nvim-data/lazy/neotest/lua/neotest/lib/file/init.lua:23 | Reading file: C:\Users\wayneb\source\repos\vstest\vstest.tests\UnitTest1.cs
DEBUG | 2025-07-31T09:59:13Z-0500 | ...vim-data/lazy/neotest-vstest/lua/neotest-vstest/init.lua:392 | neotest-vstest: no tests found for file C:\Users\wayneb\source\repos\vstest\vstest.tests\NoTestAtRoot.cs
INFO | 2025-07-31T09:59:13Z-0500 | ...Local/nvim-data/lazy/neotest/lua/neotest/client/init.lua:302 | No positions found in C:\Users\wayneb\source\repos\vstest\vstest.tests\NoTestAtRoot.cs
INFO | 2025-07-31T09:59:13Z-0500 | ...vim-data/lazy/neotest-vstest/lua/neotest-vstest/init.lua:478 | neotest-vstest: done scanning C:\Users\wayneb\source\repos\vstest\vstest.tests\UnitTest1.cs for tests
Image

neotest.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions