Build failed because of unit tests, but no tests in output and local tests pass fine

We’ve just added a mature 5.6 project to cloud build, and things seems to mostly work great until we turn on the unit test runner. The build then fails with ! build failed - one or more unit/integration tests failed, but there doesn’t seem to be any failed tests listed in the log. When we run the tests locally, there’s no failures. This happens for android, PC and mac os.

The unit test setup on cloud build was just to toggle on “Run Unit Tests” and “Fail Build On Test Fail”. As I understand it, the default Unit Test Method will run all tests in the project, which is what we want.

These are all pure unit tests, with no monobehaviours, gameobjects or scene changes, using unity’s built-in nunit, with an nsubstitute dll thrown in for good measure.

Anyone got any idea what’s going on? What more information can I give you?

Same for me, is it possible to somehow display test results?

The display of the Unit Tests results is a current known issue.

To workaround this for the time being you can download the Unit Test results in XML format from the History page.
To do this:

  1. Navigate to your project in the web dashboard.
  2. Select Cloud Build which should take you to the History page.
  3. On the build which you wish to review Unit Test results, click on the arrow next to the Download button and you should see an option to Download Unit Tests.

Is there any update on this? The downloaded XML seems not be designed for human-readability…

This issue should now be resolved and the Tests tab should now populate. There is now also the option to select EditMode or PlayMode tests or both!

To view the test results, go to the log of the build in the Developer Dashboard and select the Tests tab at the top of the page.