Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Documentation on writing test adapters? #203

Open
alexrp opened this issue Aug 12, 2019 · 1 comment
Open

Documentation on writing test adapters? #203

alexrp opened this issue Aug 12, 2019 · 1 comment

Comments

@alexrp
Copy link

alexrp commented Aug 12, 2019

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
Copy link
Author

alexrp commented Dec 25, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant