Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question EditMode tests access game scripts?

Discussion in 'Testing & Automation' started by jasons-novaleaf, Feb 5, 2021.

  1. jasons-novaleaf

    jasons-novaleaf

    Joined:
    Sep 13, 2012
    Posts:
    181
    Hello, I found out how to let PlayMode tests access the game scripts (TestRunner Gui --> Enable Playmode tests for all assemblies)

    Is there a way to do this with EditMode tests too?

    Specifically, I have some library code I want to write tests for. I can't figure out how to do this unless I put the EditMode project .asmdef in the same folder / parent folder of the class I want tested.