summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/boot_tests.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2020-04-22 08:56:17 +0000
committerAaron Bohy <aab@odoo.com>2020-04-24 08:11:17 +0000
commita3a415b13003cd3bfccc202e833efac9ccfeebce (patch)
treecc11846dc7ce5b0742b8933dec85047ccc62bc2c /addons/web/static/tests/boot_tests.js
parenteec563c2f1e464656dd2b67b5107a1035817b671 (diff)
[FIX] web: tests: detect failed modules in small suites
Before this commit, we waited for 10 seconds before defining the boot test (checking that all JS modules have been correctly loaded). However, small test suites (like the mobile one) ended before this test was defined. So we could end up with a green branch with tests not being executed (e.g. if a testing module had missing dependencies, and was part of a small suite). This commit removes the boot tests and instead does the check at the end of the suite, before logging that the suite passed. closes odoo/odoo#50109 X-original-commit: 048557eef32df94715ab464614c9d9d34c4a2689 Signed-off-by: Géry Debongnie (ged) <ged@openerp.com> Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web/static/tests/boot_tests.js')
-rw-r--r--addons/web/static/tests/boot_tests.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/addons/web/static/tests/boot_tests.js b/addons/web/static/tests/boot_tests.js
deleted file mode 100644
index 7103c1dd5f9..00000000000
--- a/addons/web/static/tests/boot_tests.js
+++ /dev/null
@@ -1,18 +0,0 @@
-(function () {
-"use strict";
-
-odoo.__DEBUG__.didLogInfo.then(function () {
- var modulesInfo = odoo.__DEBUG__.jsModules;
-
- QUnit.module('Odoo JS Modules');
-
- QUnit.test('all modules are properly loaded', function (assert) {
- assert.expect(2);
-
- assert.deepEqual(modulesInfo.missing, [],
- "no js module should be missing");
- assert.deepEqual(modulesInfo.failed, [],
- "no js module should have failed");
- });
-});
-})();