I am trying to implement a custom Test Adapter, all the files are bellow:
- TSTestDiscoverer.cs
- TSTestExecutor.cs
- TSTestContainer.cs
- TSTestContainerDiscoverer.cs
- VsSolutionHelper.csfrom XMLTestDiscoverer source code
Using
vstest.console.exe /listdiscoverers /usevsixextensions:true
I confirmed that the extension is installed and it is listed on the test discoverers.
Running
vstest.console.exe file.ts
I confirmed that both TSTestDiscoverer
and TSTestExecutor
are working correctly.
Now I want to list the tests on Test Explorer, for that I guess I need ITestContainer
and ITestContainerDiscoverer
. I tried to implement both, but something is not working, the Test Explorer does not show any tests...
What did I do wrong? How can I find out what is not working?