mirror of https://gitee.com/bigwinds/arangodb
Bug fix/result evaluation test counting (#10176)
This commit is contained in:
parent
35786aa517
commit
6f289d03ce
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue