From b66bf0c7baf7a7b51f633849e7940ab3f5ec4a73 Mon Sep 17 00:00:00 2001 From: Dmitry Baev Date: Tue, 17 Dec 2024 16:32:22 +0000 Subject: [PATCH] improve report generation (via #27) --- .github/workflows/build.yml | 2 -- allurerc.mjs | 3 --- package.json | 5 +---- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 98d50b8..9021d38 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,8 +28,6 @@ jobs: run: yarn test - name: Lint Project run: yarn eslint - - name: Generate report - run: yarn report - name: Deploy to GitHub Pages if: github.ref == 'refs/heads/main' uses: peaceiris/actions-gh-pages@v3 diff --git a/allurerc.mjs b/allurerc.mjs index fb3a45c..5a71d09 100644 --- a/allurerc.mjs +++ b/allurerc.mjs @@ -1,16 +1,13 @@ import { defineConfig } from "allure"; -// TODO: add history path export default defineConfig({ name: "Allure Report 3", output: "./out/allure-report", plugins: { awesome: { options: { - reportName: "Allure Report 3", singleFile: true, reportLanguage: "en", - open: true, }, }, log: { diff --git a/package.json b/package.json index 16d9236..c6462dc 100644 --- a/package.json +++ b/package.json @@ -17,10 +17,7 @@ "eslint:format": "yarn workspaces foreach -Avvpt run eslint:format", "prepare": "husky", "prettier:format": "prettier --write './packages/*/{src,test,features}/**/*.{json,js,ts,tsx}' package.json ./packages/*/package.json", - "prereport": "rimraf ./out/allure-report", - "report": "yarn allure generate ./out/allure-results", - "pretest": "rimraf ./out/allure-results", - "test": "yarn workspaces foreach -Avvpt run test" + "test": "yarn allure run -- yarn workspaces foreach -Avvpt run test" }, "lint-staged": { "packages/*/{src,test,features}/**/*.{js,ts,tsx}": [