1
0
Fork 0

Report result of unittest in file.

This commit is contained in:
Max Neunhoeffer 2014-03-14 14:40:33 +01:00
parent ae5f43b36e
commit 84644a4c10
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
function main (argv) {
var fs = require("fs");
var print = require("internal").print;
if (argv.length < 2) {
print("Usage: unittest TESTNAME [OPTIONS]");
@ -11,5 +12,8 @@ function main (argv) {
}
var UnitTest = require("org/arangodb/testing").UnitTest;
start_pretty_print();
print(UnitTest(test,options));
var r = UnitTest(test,options);
fs.write("UNITTEST_RESULT.json",JSON.stringify(r));
fs.write("UNITTEST_RESULT_SUMMARY.txt",JSON.stringify(r.all_ok));
print(r);
}