mirror of
https://github.com/ThisIsBenny/wishlist-app.git
synced 2025-05-16 11:27:42 +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
|
run: npm ci
|
||||||
- name: Unit tests
|
- name: Unit tests
|
||||||
run: npm run test:unit:ci
|
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:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -30,3 +30,4 @@ dist/
|
||||||
coverage
|
coverage
|
||||||
.env
|
.env
|
||||||
data
|
data
|
||||||
|
reports/
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
"build:backend": "prisma generate && tsc -p tsconfig.backend.json --outDir dist",
|
"build:backend": "prisma generate && tsc -p tsconfig.backend.json --outDir dist",
|
||||||
"preview": "vite preview --port 5050",
|
"preview": "vite preview --port 5050",
|
||||||
"test:unit": "vitest --environment jsdom",
|
"test:unit": "vitest --environment jsdom",
|
||||||
"test:unit:ci": "vitest --environment jsdom --run",
|
"test:unit:ci": "vitest --environment jsdom --run --reporter=junit",
|
||||||
"coverage": "vitest run --environment jsdom --coverage --reporter=junit",
|
"coverage": "vitest run --environment jsdom --coverage",
|
||||||
"typecheck": "vue-tsc --noEmit",
|
"typecheck": "vue-tsc --noEmit",
|
||||||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
|
|
|
@ -20,4 +20,7 @@ export default defineConfig({
|
||||||
build: {
|
build: {
|
||||||
outDir: 'dist/static',
|
outDir: 'dist/static',
|
||||||
},
|
},
|
||||||
|
test: {
|
||||||
|
outputFile: 'reports/unittest.xml',
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue