reports added to unittest

Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2022-03-04 22:04:56 +01:00
parent a2d81b0f14
commit 2cbc0e2f8e
4 changed files with 13 additions and 2 deletions

View file

@ -31,6 +31,13 @@ jobs:
run: npm ci
- name: Unit tests
run: npm run test:unit:ci
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Vitest Tests
path: reports/unittest.xml
reporter: jest-junit
docker:
runs-on: ubuntu-latest
needs:

1
.gitignore vendored
View file

@ -30,3 +30,4 @@ dist/
coverage
.env
data
reports/

View file

@ -10,8 +10,8 @@
"build:backend": "prisma generate && tsc -p tsconfig.backend.json --outDir dist",
"preview": "vite preview --port 5050",
"test:unit": "vitest --environment jsdom",
"test:unit:ci": "vitest --environment jsdom --run",
"coverage": "vitest run --environment jsdom --coverage --reporter=junit",
"test:unit:ci": "vitest --environment jsdom --run --reporter=junit",
"coverage": "vitest run --environment jsdom --coverage",
"typecheck": "vue-tsc --noEmit",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"prepare": "husky install"

View file

@ -20,4 +20,7 @@ export default defineConfig({
build: {
outDir: 'dist/static',
},
test: {
outputFile: 'reports/unittest.xml',
},
})