Skip to content

Commit 2c3d1b5

Browse files
committed
Added code coverage reports
1 parent b2f3d1d commit 2c3d1b5

File tree

6 files changed

+897
-773
lines changed

6 files changed

+897
-773
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: npm install
3838

3939
- name: Test
40-
run: CI=true npm run test-vite
40+
run: CI=true npm run test-vite:coverage
4141

4242
- name: Upload code coverage to Codecov
4343
uses: codecov/codecov-action@v3
@@ -80,9 +80,9 @@ jobs:
8080
NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
8181

8282
- name: Test
83-
run: npm run test-storybook -- --url ${{ steps.waitForNetlify.outputs.url }} --ci
83+
run: npm run test-storybook:coverage -- --url ${{ steps.waitForNetlify.outputs.url }} --ci
8484

85-
- name: Upload code coverage to Codecov # TODO: Check if codecov works with storybook
85+
- name: Upload code coverage to Codecov
8686
uses: codecov/codecov-action@v3
8787

8888
lint:

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ vite.config.ts.timestamp-*
1111
# IDEs
1212
.vscode
1313
.idea
14+
15+
# Test Reports
16+
/coverage

.storybook/main.cts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ module.exports = {
33
addons: [
44
'@storybook/addon-links',
55
'@storybook/addon-essentials',
6-
'@storybook/addon-interactions'
6+
'@storybook/addon-interactions',
7+
'@storybook/addon-coverage'
78
],
89
framework: {
910
name: '@storybook/sveltekit',

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Website NIAEFEUP - FrontEnd
22

33
[![Build Preview](https://api.netlify.com/api/v1/badges/8ddc6c12-c861-4fd5-8087-2c076d090c5a/deploy-status?branch=develop)](https://develop--niaefeup-frontend.netlify.app/)
4+
[![codecov](https://codecov.io/gh/NIAEFEUP/website-niaefeup-frontend/branch/develop/graph/badge.svg?token=K5HKQV5209)](https://codecov.io/gh/NIAEFEUP/website-niaefeup-frontend)
45

56
The frontend of the website for NIAEFEUP, a student branch in FEUP.
67

0 commit comments

Comments
 (0)