Skip to content

Commit

Permalink
chore: use summary reporters in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kobyhallx committed Sep 14, 2023
1 parent 0a640f9 commit bfd68c6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
7 changes: 7 additions & 0 deletions compiler/integration-tests/web-test-runner.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { defaultReporter } from "@web/test-runner";
import { summaryReporter } from "@web/test-runner";
import { fileURLToPath } from "url";
import { esbuildPlugin } from "@web/dev-server-esbuild";
import { webdriverLauncher } from "@web/test-runner-webdriver";

// eslint-disable-next-line no-undef
const reporter = process.env.CI ? summaryReporter() : defaultReporter();

export default {
browsers: [
webdriverLauncher({
Expand All @@ -26,6 +31,8 @@ export default {
ui: "bdd",
},
},
// eslint-disable-next-line no-undef
rootDir: fileURLToPath(new URL("./../..", import.meta.url)),
testsFinishTimeout: 60 * 20e3, // 20 minutes
reporters: [reporter],
};
8 changes: 7 additions & 1 deletion compiler/wasm/web-test-runner.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { fileURLToPath } from 'url';
import { defaultReporter } from "@web/test-runner";
import { summaryReporter } from "@web/test-runner";
import { fileURLToPath } from "url";
import { esbuildPlugin } from "@web/dev-server-esbuild";
import { playwrightLauncher } from "@web/test-runner-playwright";

const reporter = process.env.CI ? summaryReporter() : defaultReporter();

export default {
browsers: [
playwrightLauncher({ product: "chromium" }),
Expand All @@ -22,4 +26,6 @@ export default {
},
},
rootDir: fileURLToPath(new URL('./../../', import.meta.url)),
reporters: [reporter],

};
9 changes: 8 additions & 1 deletion tooling/noirc_abi_wasm/web-test-runner.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { fileURLToPath } from 'url';
import { defaultReporter } from "@web/test-runner";
import { summaryReporter } from "@web/test-runner";
import { fileURLToPath } from "url";
import { esbuildPlugin } from "@web/dev-server-esbuild";
import { playwrightLauncher } from "@web/test-runner-playwright";

// eslint-disable-next-line no-undef
const reporter = process.env.CI ? summaryReporter() : defaultReporter();

export default {
browsers: [
playwrightLauncher({ product: "chromium" }),
Expand All @@ -21,5 +26,7 @@ export default {
timeout: 40000,
},
},
// eslint-disable-next-line no-undef
rootDir: fileURLToPath(new URL("./../../", import.meta.url)),
reporters: [reporter],
};

0 comments on commit bfd68c6

Please sign in to comment.