PlayMode Tests never stopping in Editor

I’ve been using EditMode tests for a while and wanted to just quickly setup a set of Playmode test but hit a weird issues where PlayMode test just don’t work in editor.

using a default test bellow and pressing run all

        [UnityTest]
        public IEnumerator Tests()
        {
            yield return null;
        }

it will just boot into given scene but will just never stop playing thus never show pass or fail. I’m at a bit of a loss on why this would be occuring.

What versions of Unity and Test Framework?

What happens if you only use a [Test] method without yield?

Did you try creating an empty (new) scene and open that before launching the playmode tests? I can imagine that something in the scene might interfere with playmode tests.

Will leave this thread up for propteraty but it was 100% on my end due to the use of a InitializeOnLoad class hooking into our scene managment. Which we just didn’t want to use in test mode. Disabling that while running unit test fixed the issue