Skip to content

Commit

Permalink
Tests workflow updated
Browse files Browse the repository at this point in the history
  • Loading branch information
UO287687 committed Feb 23, 2024
1 parent f355e05 commit c42435f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ jobs:
node-version: 20
- run: npm --prefix users/authservice ci
- run: npm --prefix users/userservice ci
- run: npm --prefix question_generator ci
- run: npm --prefix questionservice ci
- run: npm --prefix gatewayservice ci
- run: npm --prefix webapp ci
- run: npm --prefix users/authservice test -- --coverage
- run: npm --prefix users/userservice test -- --coverage
- run: npm --prefix question_generator test -- --coverage
- run: npm --prefix questionservice test -- --coverage
- run: npm --prefix gatewayservice test -- --coverage
- run: npm --prefix webapp test -- --coverage
- name: Analyze with SonarCloud
Expand Down
4 changes: 2 additions & 2 deletions gatewayservice/gateway-service.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('Gateway Service', () => {
expect(response.body).toHaveProperty('correct');
expect(response.body).toHaveProperty('incorrects');
},100000);
/*

// Test /addquestion endpoint
it('should add a new question', async () => {
const response = await request(app)
Expand All @@ -69,5 +69,5 @@ describe('Gateway Service', () => {

expect(response.statusCode).toBe(200);
expect(response.body).toHaveProperty('question', 'What is the capital of France?');
}); */
});
});
5 changes: 4 additions & 1 deletion webapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,14 @@ unit-tests:
node-version: 18
- run: npm --prefix users/authservice ci
- run: npm --prefix users/userservice ci
- run: npm --prefix question_generator ci
- run: npm --prefix questionservice ci
- run: npm --prefix gatewayservice ci
- run: npm --prefix webapp ci
- run: npm --prefix users/authservice test -- --coverage
- run: npm --prefix users/userservice test -- --coverage
- run: npm --prefix question_generator/questionGenerationService test -- --coverage
- run: npm --prefix question_generator test -- --coverage
- run: npm --prefix questionservice test -- --coverage
- run: npm --prefix gatewayservice test -- --coverage
- run: npm --prefix webapp test -- --coverage
- name: Analyze with SonarCloud
Expand Down

0 comments on commit c42435f

Please sign in to comment.