Couldn't find any suitable test cases with xUnit

While the tests worked fine on Friday, I am getting this error:

enter image description here

When I look at the xUnit github it cleans this from the xUnit code:

enter image description here

The GetTestCases code does the following:

enter image description here

So when I read it, and as you would expect, the test build reads for matches that suddenly fail for some reason, and just fine on Friday.

I tried another solution, it works great.

What i tried

  • Clear / restore solution
  • Manually delete folders bin

    obj

  • Remove and install xunit package (version 2.2.0)
  • Shutting down / restarting Visual Studio
  • Reboot your laptop.

None of this helps or updates ReSharper.

What's going on and what can be fixed?

Perhaps ReSharper is interfering in some way?

+3


source to share


1 answer


My problem was that the Unit Test project created in VS2017 (v15.2) did not have a reference to certain nodes. After each unsuccessful attempt, I simply looked at the Output: Tests window to check for any exception. The exceptions were related to missing assembly references:System.Runtime, System.Runtime.Extensions, System.Reflection. System.Linq

After adding all the links (NuGets) everything works as intended.



I am using VS2017, SpecFlow (2.2.0), xUnit (2.2.0),. NET 4.7, R # (2017.1.3)

+2


source







All Articles