diff options
Diffstat (limited to 'tests/lib/screenshot-testing/support/app.js')
-rw-r--r-- | tests/lib/screenshot-testing/support/app.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/screenshot-testing/support/app.js b/tests/lib/screenshot-testing/support/app.js index 73eade6892..da76557805 100644 --- a/tests/lib/screenshot-testing/support/app.js +++ b/tests/lib/screenshot-testing/support/app.js @@ -166,11 +166,13 @@ Application.prototype.setupDatabase = function () { Application.prototype.doRunTests = function () { var self = this; + testEnvironment.reload(); + // run tests this.runner = mocha.run(function () { // remove symlinks if (!options['keep-symlinks']) { - var symlinks = ['libs', 'plugins', 'tests']; + var symlinks = ['libs', 'plugins', 'tests', 'piwik.js']; symlinks.forEach(function (item) { var file = path.join(uiTestsDir, '..', 'proxy', item); |