Search Unity

Attach console to device during unit tests (batchmode)

Discussion in 'Editor & General Support' started by LukeFireproof, Jun 28, 2019.

  1. LukeFireproof

    LukeFireproof

    Joined:
    Jan 21, 2016
    Posts:
    13
    Does anyone know of a way to attach the console to a device when running unit testing from command line? I can do this ok if I run the unit tests in Editor GUI, but we have a bunch of tests that run on a build machine so it'd be useful to do this from command line.
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    First of all, i think this should be moved to the "Automation and testing" forum.

    Regarding your question - what exactly do you want to achieve? are you running the tests in the editor (also on build machine) or on a hardware device? (e.g: phone)