Skip to content

Commit

Permalink
limit test workers for vitest integration tests
Browse files Browse the repository at this point in the history
make vitest tests silent
make cypress tests silent
  • Loading branch information
epszaw committed Apr 6, 2024
1 parent e6c7b5d commit 3fd96a7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/allure-cypress/src/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export class AllureCypress {
currentTestsByAbsolutePath = new Map<string, [AllureTest, number][]>();
// need to keep the variable here because we recieve end-message and finish the current test separately
currentSteps: AllureStep[] = [];

constructor(private config?: AllureCypressConfig) {
this.runtime = new AllureNodeRuntime({
writer: new FileSystemAllureWriter({
Expand Down
2 changes: 1 addition & 1 deletion packages/allure-cypress/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const runCypressInlineTest = async (

const moduleRootPath = require.resolve("cypress");
const modulePath = resolve(moduleRootPath, "../bin/cypress");
const args = ["run", "-s", testFilePath];
const args = ["run", "-s", testFilePath, "-q"];
const testProcess = fork(modulePath, args, {
env: {
...process.env,
Expand Down
2 changes: 1 addition & 1 deletion packages/allure-vitest/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const runVitestInlineTest = async (
}

const modulePath = require.resolve("vitest/dist/cli-wrapper.js");
const args = ["run", "--config", configFilePath, "--dir", testDir];
const args = ["run", "--config", configFilePath, "--dir", testDir, "--silent"];
const testProcess = fork(modulePath, args, {
env: {
...process.env,
Expand Down
1 change: 1 addition & 0 deletions packages/allure-vitest/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import AllureReporter from "allure-vitest/reporter";
export default defineConfig({
test: {
testTimeout: 10000,
fileParallelism: false,
setupFiles: ["allure-vitest/setup"],
reporters: [
"default",
Expand Down

0 comments on commit 3fd96a7

Please sign in to comment.