mirror of
https://github.com/ThisIsBenny/wishlist-app.git
synced 2025-04-19 15:27:41 +00:00
reports added to unittest
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
a2d81b0f14
commit
2cbc0e2f8e
4 changed files with 13 additions and 2 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
@ -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
1
.gitignore
vendored
|
@ -30,3 +30,4 @@ dist/
|
|||
coverage
|
||||
.env
|
||||
data
|
||||
reports/
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -20,4 +20,7 @@ export default defineConfig({
|
|||
build: {
|
||||
outDir: 'dist/static',
|
||||
},
|
||||
test: {
|
||||
outputFile: 'reports/unittest.xml',
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue