You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That rang a bell for me but can't find it now. However, I do get a similar(?) issue. When I right click solution and Run Tests, TD.Net runs all the test projects successfully but it also tries to run tests against a non-test project and gives this error message:
------ Test started: Assembly: Specify.Examples.dll ------
Couldn't find an appropriate testRunner to execute your tests.
Please ensure your project is a Console Application and has one of the following as a dependency:
"dotnet-test-nunit"
"dotnet-test-xunit"
Alternatively, any method or property without a test attribute can be executed as an "Ad hoc" test.
Here is the project.json for the non-test project:
jcansdale
changed the title
Couldn't find .NET Core or.NET Framework assembly for 'project.json'
TestDriven.Net tries to run tests in .NET Core projects that don't contain tests
Jul 28, 2016
@mwhelan Thanks for the report. I think this is to do with the different way TestDriven.Net detects test projects in .xproj projects compared to the classic .NET Framework. I've changed the subject of this issue to track it.
P.S. I've started preemptively creating GitHub issues to be a landing page for things that might go wrong (they're linked from error messages). That way if they become a problem, there is somewhere obvious to find a solution or report the problem.
Projects should now only be picked up if their project.json contains a testRunner element or if they're a .NET framework project and reference a known test framework (found in .tdnet file or registry).
No description provided.
The text was updated successfully, but these errors were encountered: