Search Unity

Question Unity Test Runner Logging options

Discussion in 'Testing & Automation' started by giacomohomunculus, Jan 24, 2019.

  1. giacomohomunculus

    giacomohomunculus

    Joined:
    Oct 3, 2018
    Posts:
    20
    Hello,

    Is there a way to log the test results to the console instead of generating an xml file? (for when the tests are run via the command line..)
    Or to at least generate an xml file for when a test fails..
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    Do you have the Editor.log for your test executions? from what i recall (i could be totally wrong on this), the test runner actually uses console messages to flag whether tests pass or fail. do you see any messages in the log file about test execution?

    Also, what do you mean "generate an xml file when a test fails" ? the xml file contains an NUnit style test suite results. it shows all tests that passed or failed.