From aeb5f05706661fdbc7e5ce18a3f3596b5ad11815 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Gerardy Date: Sun, 11 Sep 2016 16:21:45 +0200 Subject: [PATCH] Add the old test suite to the grunt task for both local tests and CI This relies on a hack to bypass the `mocha` detection by `grunt-mocha-phantomjs`. The tests have to run in less than 10 seconds, which is unlikely to be problematic on current hardware. Alternatively, adding the following to tests/index.html also makes the old test suite compatible with the mocha runner, but it entails loading `mocha`: --- Gruntfile.js | 2 +- tests/index.html | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index d858e4ed..6cb76731 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -95,7 +95,7 @@ module.exports = function (grunt) { // eslint-disable-line mocha_phantomjs: { // eslint-disable-line camelcase test: { - src: ["test/index.html"], + src: ["test/index.html", "tests/index.html"], options: { reporter: "dot" } diff --git a/tests/index.html b/tests/index.html index 9d7f08f4..1478c0f6 100644 --- a/tests/index.html +++ b/tests/index.html @@ -4,5 +4,11 @@ +

Open the console to see the test report