Search Unity

Bug Running tests on platforms not working

Discussion in 'Testing & Automation' started by Chefty, Jan 4, 2019.

  1. Chefty

    Chefty

    Joined:
    Jun 17, 2015
    Posts:
    43
    Hello,

    When I'm trying to run my PlayMode test in a player (Android), Unity throw me two errors I can't manage to fix:
    Capture.PNG

    If you wonder why i'm trying to run on a device instead of just running it in unity editor; it's because i'm also doing UI test and I'd like to test scenes that only works on my android device.

    n.b. I've started to work on Unity test runner very recently...

    Regards,
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Please show your code that is displaying the above error. Perhaps this is Editor only code? If so, it would not be expected to run on a device. And as the message says, are you missing an assembly reference (a "using .." statement)
     
  3. xzodia

    xzodia

    Joined:
    Jan 24, 2013
    Posts:
    50
    I am also having this problem, TestTools and NUnit are namespaces included with unity and required to run tests, but they are excluded by the build platform.
    This seems like a rather large bug...