From bed3560d61b9bfc9b0608535a3f586b3a984783b Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 28 May 2019 14:49:45 +0200 Subject: [PATCH] EXPERIMENTAL: more js tests logs (#7620) --- test/javascripts/test_helper.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/javascripts/test_helper.js b/test/javascripts/test_helper.js index 14d79bb4072..a98ae14979d 100644 --- a/test/javascripts/test_helper.js +++ b/test/javascripts/test_helper.js @@ -101,7 +101,12 @@ function resetSite(siteSettings, extras) { Discourse.Site.resetCurrent(Discourse.Site.create(siteAttrs)); } +QUnit.testDone(function(ctx) { + console.log("-- " + ctx.runtime); +}); + QUnit.testStart(function(ctx) { + console.log(ctx.module + " -> " + ctx.name); server = pretender.default(); if (ctx.module.startsWith(acceptanceModulePrefix)) { @@ -111,7 +116,11 @@ QUnit.testStart(function(ctx) { success: pretender.success }; - applyPretender(ctx.module.replace(acceptanceModulePrefix, ""), server, helper); + applyPretender( + ctx.module.replace(acceptanceModulePrefix, ""), + server, + helper + ); } // Allow our tests to change site settings and have them reset before the next test