Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/screenshot-testing/support/app.js')
-rw-r--r--tests/lib/screenshot-testing/support/app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/screenshot-testing/support/app.js b/tests/lib/screenshot-testing/support/app.js
index 655974bf9f..037bb5925a 100644
--- a/tests/lib/screenshot-testing/support/app.js
+++ b/tests/lib/screenshot-testing/support/app.js
@@ -96,6 +96,7 @@ Application.prototype.loadTestModules = function () {
plugins.forEach(function (pluginPath) {
walk(path.join(pluginPath, 'Test'), /_spec\.js$/, modulePaths);
+ walk(path.join(pluginPath, 'tests'), /_spec\.js$/, modulePaths);
});
modulePaths.forEach(function (path) {
@@ -206,7 +207,7 @@ Application.prototype.doRunTests = function () {
};
Application.prototype.finish = function () {
- phantom.exit(this.runner.failures);
+ phantom.exit(this.runner ? this.runner.failures : -1);
};
exports.Application = new Application(); \ No newline at end of file