diff --git a/UnitTests/unittest.js b/UnitTests/unittest.js index 271077399a..05674bc973 100644 --- a/UnitTests/unittest.js +++ b/UnitTests/unittest.js @@ -220,6 +220,13 @@ function main (argv) { try { fs.write(testOutputDirectory + '/UNITTEST_RESULT_EXECUTIVE_SUMMARY.json', "false", true); fs.write(testOutputDirectory + '/UNITTEST_RESULT_CRASHED.json', "true", true); + let testFailureText = 'testfailures.txt'; + if (options.hasOwnProperty('testFailureText')) { + testFailureText = options.testFailureText; + } + fs.write(fs.join(testOutputDirectory, testFailureText), + "Incomplete testrun with these testsuites: '" + testSuits + + "'\nand these options: " + JSON.stringify(options) + "\n"); } catch (x) { print('failed to write default test result: ' + x.message); throw(x);