Skip to content

Commit 7871d4a

Browse files
authored
Merge pull request #66 from AET-DevOps25/chore/testing/improve-client-test-coverage
2 parents 5ca37e1 + 019c028 commit 7871d4a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+7172
-28
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,29 @@ jobs:
5959
with:
6060
name: coverage-report
6161
path: genai/htmlcov/
62+
63+
test-client:
64+
name: Run Client Tests
65+
runs-on: ubuntu-latest
66+
steps:
67+
- name: Checkout
68+
uses: actions/checkout@v4
69+
70+
- uses: actions/setup-node@v4
71+
with:
72+
node-version: "20"
73+
cache: "npm"
74+
cache-dependency-path: client/package-lock.json
75+
76+
- name: Install dependencies
77+
run: cd client && npm ci
78+
79+
- name: Run tests with coverage
80+
run: cd client && npm run test:coverage
81+
82+
- name: Upload Client Coverage Report
83+
if: always()
84+
uses: actions/upload-artifact@v4
85+
with:
86+
name: client-coverage-report
87+
path: client/coverage/

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ cd client && npm test
112112
cd genai && python -m pytest
113113
```
114114

115+
```bash
116+
# Run tests with coverage verification
117+
cd server && ./gradlew test jacocoTestCoverageVerification
118+
cd client && npm run test:coverage
119+
cd genai && python -m pytest
120+
```
121+
115122
## Deployment 🚢
116123

117124
### AWS Deployment ☁️

0 commit comments

Comments
 (0)