Include "Editor" platform does NOT show in test runner!

I am getting some compile errors for my unit tests (which shouldn’t build anyway…? +bug here)

I INCLUDE only the editor:

My tests in my Test Runner PlayMode are now gone in 2021 LTS.

8424522--1115025--upload_2022-9-8_17-56-3.png

I must include my current BUILD platform for test runner to show these.

Expected: Including only editor should… show test runner tests in editor :slight_smile:

Found a hilarious bug workaround:

If I EXCLUDE everything EXCEPT Editor … works fine.

TL;DR:

If you only check Editor, then the Play Mode tests won’t appear because you made them editor-only. It seems you got this backwards, or there is something I’m missing.

When I build targeting that platform, I get errs. It shoudlnt try to build the tests at all.

Could you post the exact error messages you get?
And the contents of the test assembly definition (.asmdef file). This kind of error happens when the asmdef does not include the constraint as explained here.