Test Runner stuck in invalid test state

Hello,

it seems I accidentally created an invalid unit test. Shortly after I realized that and fixed it.
From this moment on I get each frame a recurring error and the TestRunner does not show any tests anymore.
The error completely prevents me from using the TestRunner:

Things I tried:

  • Changing the code in the test class
  • Deleting code in the test class
  • Deleting the test class/file
  • Deleting the assembly
  • Deleting library caches
  • (Of course) restarting Unity and my PC
  • Removing Test Framework in PackageManager and reinstalling it
  • Reinstalling Unity

Somehow I’m at a loss of what to do. I guess there is something in a some global cache that I can’t find.

Does someone have an idea?

Were you able to find a fix for this? I’m running into the exact same issue.

Well, not really.
I managed to get around for now with a pre test-framework version.
Edit in manifest.json:

"com.unity.test-framework": "2.0.1-pre.18",

At least it works somehow with this.

I was able to reproduce this bug and did bug report. Please vote

I solved the same problem by up-or-downgrading the “com.unity.test-framework” version and reverting to the original version after ensuring the problem was resolved.

There is probably a mechanism caching test case information outside of the project. So, running “git clean -fdx” inside the project does not remedy the problem.