nunit-vs-adapter icon indicating copy to clipboard operation
nunit-vs-adapter copied to clipboard

Ignoring result

Open GrimaceOfDespair opened this issue 9 years ago • 4 comments

When I run a set of tests that produce a lot of console output, I get this message for a subset of my tests:

Test adapter sent back a result for an unknown test case. Ignoring result for 'MyTest'

Note I have both succesful tests and "unkown test case' from tests in the same assembly.

When this happens, 'MyTest' seems to disappears from the Test Explorer window and CodeLens, and I keep getting the 'unknown test case' message for the same tests, until I do a rebuild. After rebuild, everything runs fine again.

Since the rebuild fixes the test detection, I'll link another maybe related issue here: https://github.com/nunit/nunit-vs-adapter/issues/110

And to conclude, the issue sounds a lot like the GTA throttling thing: https://github.com/csoltenborn/GoogleTestAdapter/issues/15

GrimaceOfDespair avatar Jun 06 '16 15:06 GrimaceOfDespair

In order for us to know how to treat this report, we need to know the signature of the test that is not known to Visual Studio. If it's a test with parameters, you may find two results reported under one "test" in the explorer window, so check for that as well.

CharliePoole avatar Jun 06 '16 15:06 CharliePoole

I've witnessed the quirks of parameterized tests numerous times, so I actually ignore issues with them by default. But: it's also occurring for void methods without args.

GrimaceOfDespair avatar Jun 08 '16 06:06 GrimaceOfDespair

What are the versions for the nunit framework and the adapter?

CharliePoole avatar Jun 08 '16 08:06 CharliePoole

  • NUnit.2.6.4
  • NUnitTestAdapter.2.0.0

GrimaceOfDespair avatar Jun 08 '16 10:06 GrimaceOfDespair