A little confused on how xunit2 test discovery works with the console runner
I'm a little bit confused on how xunit2 test discovery works for the console runner. I have tests that are set up similar to this:
[CustomFact] [Trait("TestTrait1", "Value")] [Trait("TestTrait2, "Value")] ...
Whenever I use the console to run a test in this format, the discover does not find it. If I switch it to a regular fact, like so:
[Fact] [Trait("TestTrait1", "Value")] [Trait("TestTrait2", "Value")] ...
The console runner does find them (in the first code block, ReShaper 9's xUnit extension has no issues finding the tests or running them - the issue only shows up when I use the xunit runner in the console).
From what I have been reading, I probably need to add a discoverer somewhere. I see examples here that seems like the closest thing, but I'm not sure exactly how this works. I feel like I've been struggling to find the documentation that I need to understand what these examples are doing
Any resources/explanations are appreciated
0 comments:
Post a Comment