Tests not discovered in Test Explorer
I'm trying to run my tests in Visual Studio but unfortunately they're not discovered and there are no buttons in the gutter like there are for other testing frameworks.
Test Explorer says that 4 tests are found, but no tests are shown and the console contradictingly says "No tests found to run."
My testing project only has TUnit installed, no other packages.
Is this a bug in VS?
Also, in the documentation for TUnit, this option no longer exists (I assume because it's already enabled implicitly?):
namespace Tests
{
public class MyTest
{
[Test]
public async Task TestMethod()
{
await Assert.That(3).IsEqualTo(3);
}
}
}
Yeah sounds like a VS issue
I also noticed that all TUnit output goes to a log file located under TestResults. Is there a way to get all the output to the console instead?
@silkfire Use --output Detailed
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.