EXPERIMENTAL: more js tests logs (#7620)

This commit is contained in:
Joffrey JAFFEUX 2019-05-28 14:49:45 +02:00 committed by GitHub
parent bf3c781f26
commit bed3560d61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -101,7 +101,12 @@ function resetSite(siteSettings, extras) {
Discourse.Site.resetCurrent(Discourse.Site.create(siteAttrs)); Discourse.Site.resetCurrent(Discourse.Site.create(siteAttrs));
} }
QUnit.testDone(function(ctx) {
console.log("-- " + ctx.runtime);
});
QUnit.testStart(function(ctx) { QUnit.testStart(function(ctx) {
console.log(ctx.module + " -> " + ctx.name);
server = pretender.default(); server = pretender.default();
if (ctx.module.startsWith(acceptanceModulePrefix)) { if (ctx.module.startsWith(acceptanceModulePrefix)) {
@ -111,7 +116,11 @@ QUnit.testStart(function(ctx) {
success: pretender.success 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 // Allow our tests to change site settings and have them reset before the next test