1.6 KiB
Command-line arguments
This section lists Unity arguments supported by the package when running performance tests from the command line. For a general overview of the topic, see the Unity Test Framework documentation.
Supported arguments
perfTestResults
The path where Unity should save the JSON file with performance test run results. By default, Unity saves it in
the Application.persistentDataPath
folder, and, if you specify the testResults argument of the Unity Test Framework package, in the folder that holds the
NUnit test results file as well.
Please note that when this argument is not provided, Unity generates two report files at the default results location -
the JSON file with performance test run results as well as the NUnit test results XML file that these results are
extracted from. This behaviour currently exists for backwards compatibility reasons and will be deprecated over time, as
the destination path of the test results XML file is already controlled by the testResults command-line argument of
the Unity Test Framework package.
Unity updates the results file after each test finishes rather than only when the run completes, so a run that ends unexpectedly still leaves the results that it had already measured on disk.
Example of command-line usage
Unity.exe -runTests -batchmode -projectPath PATH_TO_YOUR_PROJECT -testResults C:\temp\results.xml -perfTestResults C:\temp\perfResults.json