1
0
Fork 0

Bug fix/result evaluation test counting (#10176)

This commit is contained in:
Wilfried Goesgens 2019-10-08 11:14:08 +02:00 committed by Jan
parent 35786aa517
commit 6f289d03ce
2 changed files with 8 additions and 1 deletions

View File

@ -392,8 +392,8 @@ function unitTestPrettyPrintResults (options, results) {
}
},
endTestSuite: function(options, state, testSuite, testSuiteName) {
failedTestsCount++;
if (failsOfOneSuiteCount !== 0) {
failedTestsCount += failsOfOneSuiteCount;
failedCases[testSuiteName] = failsOfOneSuite;
failsOfOneSuite = {};
failsOfOneSuiteCount = 0;

View File

@ -6,6 +6,7 @@ const _ = require('lodash');
const fs = require('fs');
const internal = require('internal');
const rp = require('@arangodb/result-processing');
const yaml = require('js-yaml');
const optionsDefaults = require('@arangodb/testing').optionsDefaults;
@ -32,6 +33,12 @@ function main (argv) {
argv = argv.slice(1); // and remove first arg (c++:pop_front/bash:shift)
}
if (analyzers.length === 0) {
print(RED + "No analyzer specified. Please specify one or more of: \n" +
yaml.safeDump(Object.keys(rp.analyze)) + "\n" + RESET);
process.exit(1);
}
if (argv.length >= 1) {
try {
options = internal.parseArgv(argv, 0);