Search Issue Tracker

Fixed in Unity 2017.3

Votes

37

Found in

5.6.0f1

Issue ID

893804

Regression

No

Running Unity in batchmode gives a result file with the wrong test type

Deployment Management

-

-

Priority: 7Not yet prioritized for a release

-

Severity: 3Workaround is possible

Repro Steps:

1. Open command prompt
2. Write this command: "{UNITY_PATH}\Editor\Unity.exe" -batchmode -runEditorTests -projectPath "{PROJECT_PATH}" -editorTestsResultFile "{PROJECT_PATH}\results.xml"
3. Open the "results.xml" file
4. See that the "type" is equal to "TestSuite" and not to "TestRun"

Expected: The "results.xml" file to show that the "type" is equal to "TestRun"
Actual: The "results.xml" file to show that the "type" is equal to "TestSuite"

Fixed in: 2017.3.0a4

Reproduced on: 5.6.0f1,
Can't reproduce on: 5.5.2f1: just doesn't create the "results.xml" file, 5.4.0f3: Aborts batch-mode due to failure. "An exception was thrown when running unit tests"

The user also attached the "results.xml' file.

Comments (7)

  1. 3666aa82bc79c248068b8e35d7cc8f7f?d=mm

    ELihaib

    Nov 03, 2017 17:07

    Also on 2017.2

  2. B39463bb494c46ba7c90dc901c44432b?d=mm

    fltech

    Sep 08, 2017 07:30

  3. B39463bb494c46ba7c90dc901c44432b?d=mm

    fltech

    Sep 08, 2017 07:28

    I reproduce this issue in version 2017.1.0f3.

  4. Bcef3784421d1f6cb1f7b9721b1ff643?d=mm

    jkrumow

    Jul 11, 2017 12:46

    I can still reproduce this error in version 5.6.2f1.

    As mentioned above, it is currently not possible to properly publish the xml-reports on a Continuous Integration System.

  5. Ccf0c5f65b41a8dec55ef63eaaf9c19d?d=mm

    c9iner

    Jun 10, 2017 19:04

    We also have this issue and cannot parse the xml automatically, which makes Unit test reporting impossible.

  6. 010628cda6ab18609238eb45a4524766?d=mm

    at-at

    May 10, 2017 11:21

    Specifically, the issue is that any reports produced now are malformed XML that doesn't follow either the NUnit3 or NUnit2 format specifications. This means that we cannot parse them automatically to actually *use* the results for anything meaningful.

  7. 010628cda6ab18609238eb45a4524766?d=mm

    at-at

    May 10, 2017 11:18

    We have this issue too, running unity on Mac OS X 10.11.6 and triggering batchmode tests through Jenkins over SSH.
    Coupled with issue 892798 (inexplicably closed as by design?), these prevent any automated testing, which unfortunately means 5.6.0 is off limits for a lot of studios doing anything beyond indie/hobbyist projects, including us.

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.