vstest-docs icon indicating copy to clipboard operation
vstest-docs copied to clipboard

Documentation on writing test adapters?

Open alexrp opened this issue 6 years ago • 1 comments

Hello,

A little background: I'm working on a programming language implementation. While many aspects of the compiler and VM can be easily tested in e.g. xUnit, there are other things that are much easier to test with other tools similar to LLVM's FileCheck. That said, I'd like for these tests to still be run and reported as part of dotnet test to make the development workflow as simple as possible.

So, from what I gather, the proper way to do this is to implement a test adapter that reports and runs these non-xUnit tests. However, I've not been able to find any current documentation on how to set up a test adapter project and which interfaces I need to implement. Can anyone point me in the right direction?

And a somewhat related question: Is it possible for a test project to declare and export a test adapter directly, such that referencing a NuGet package (e.g. xunit.runner.visualstudio) is not necessary?

alexrp avatar Aug 12 '19 12:08 alexrp

So just in case anyone comes across this issue and has similar questions, this is what I ended up with after reading through the source code of xUnit's runner: https://github.com/flare-lang/flare/tree/master/src/tests

alexrp avatar Dec 25 '19 23:12 alexrp