Standalone TestRunner Split Build And Run, output results xml

Hi,

There is this nice page giving some code examples on outputting the building of a standalone TestRunner executable. TestPlayerBuildModifier attribute | Test Framework | 1.1.33

I have not yet found a way to get xml results from the built executable, particularly on Android and iOS devices. You can create an ICallback ICallbacks | Test Framework | 1.1.33 but that is an editor script that may not be included in the built standalone.

Is there a way to generate a results xml file without having the Unity Editor attached to the standalone TestRunner executable?

Hello

For that scenario we have the engine side TestRunCallback atribute. TestRunCallback attribute | Test Framework | 1.1.33
You can use the RunFinished to save the nunit testresults in xml.

Thank you for the prompt reply! That’s perfect.