Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Unit tests failing

Discussion in 'Data Oriented Technology Stack' started by tertle, Jan 11, 2019.

  1. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    1,247
    This has bothered me for months, why do some of the Unity.Entities.Hybrid.Tests unit tests fail? =(

    upload_2019-1-12_8-11-46.png
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    4,571
    Which one specifically fails.
     
  3. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    1,247
    So three of them are failing

    Both ComponentDataWrapper_SetValue_SynchronizesWithEntityManager tests

    and

    Initialize_ShouldLogNothing under DefaultWorldInitializationTests

    I haven't actually looked at tests, but I'm pretty sure just from the error the issue is I don't use the default world initialization and instead use a custom world setup, therefore some systems don't have empty constructors.

    I think the only solution is probably disabling the DefaultWorld related tests if UNITY_DISABLE_AUTOMATIC_SYSTEM_BOOTSTRAP is set in the project.

    Not a big deal anyway, just a slight annoyance as I seem to need to include the ecs tests if I want to use ECSTestsFixture in my own tests.
     
  4. Fido789

    Fido789

    Joined:
    Feb 26, 2013
    Posts:
    331
    No need to use ECSTestsFixture, you can just make your own similar base test class.