Search Unity

WebGL Play Mode tests does not find Zenject.SceneTestFixture

Discussion in 'Testing & Automation' started by joseph_unity443, Feb 9, 2022.

  1. joseph_unity443

    joseph_unity443

    Joined:
    Dec 31, 2021
    Posts:
    1
    Hello,

    We have Play Mode tests setup that use Zenject and derive from SceneTestFixture. Executing them from the Test Runner in Unity, everything works just fine. However, when I try to run the exact same tests for WebGL (via the "Run All Tests (WebGL)" button in the Test Runner), I get the following error:

    The type or namespace name 'SceneTestFixture' could not be found (are you missing a using directive or an assembly reference?)

    It is unclear to me what is causing this issue. Has anyone ran across this before and know how to fix it? In the Play Mode Test Assembly Definition Asset, Zenject is added to the Assembly Definition References and the Assembly References.

    Thanks in advance!