Skip to content

Commit

Permalink
Merge pull request #114 from qtomlinson/qt/fix_service_test
Browse files Browse the repository at this point in the history
Run the entire end to end test suite in integration test
  • Loading branch information
qtomlinson authored Nov 26, 2024
2 parents a2c7cf8 + 7a40c47 commit 144da92
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration-test-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ jobs:
- name: Trigger harvest and verify completion
run: DEV_API_BASE_URL=${{ env.DEV_API_BASE_URL }} DYNAMIC_COORDINATES=${{ matrix.dynamicCoordinates }} npm run e2e-test-harvest

- name: Verify service functions
- name: Verify definition tests
id: verify-service-functions
continue-on-error: true
run: DEV_API_BASE_URL=${{ env.DEV_API_BASE_URL }} DYNAMIC_COORDINATES=${{ matrix.dynamicCoordinates }} npm run e2e-test-service
run: DEV_API_BASE_URL=${{ env.DEV_API_BASE_URL }} DYNAMIC_COORDINATES=${{ matrix.dynamicCoordinates }} npm run e2e-test-definition

- name: Generate structured diffs
run: DEV_API_BASE_URL=${{ env.DEV_API_BASE_URL }} DYNAMIC_COORDINATES=${{ matrix.dynamicCoordinates }} npm run definitions-diff ${{ github.event.inputs.baseFolderPath }}
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: 'Array of booleans for dynamic coordinates (e.g., [true, false])'
required: true
default: '[true, false]'
skipHarvest:
description: "Skip harvest and verify completion"
required: false
default: 'false'

permissions:
contents: read
Expand Down Expand Up @@ -40,13 +44,14 @@ jobs:
- name: Run tests on tools
run: npm test

- name: Trigger harvest and verify completion
- name: Trigger harvest and verify completion if required
if: github.event.inputs.skipHarvest == 'false' || matrix.dynamicCoordinates == 'true'
run: DYNAMIC_COORDINATES=${{ matrix.dynamicCoordinates }} npm run e2e-test-harvest

- name: Verify service functions
id: verify-service-functions
continue-on-error: true
run: DYNAMIC_COORDINATES=${{ matrix.dynamicCoordinates }} npm run e2e-test-definition
run: DYNAMIC_COORDINATES=${{ matrix.dynamicCoordinates }} npm run e2e-test-service

- name: Generate structured diffs
run: DYNAMIC_COORDINATES=${{ matrix.dynamicCoordinates }} npm run definitions-diff ${{ github.event.inputs.baseFolderPath }}
Expand Down
2 changes: 1 addition & 1 deletion tools/integration/test/integration/testConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ module.exports = {
timeout: 1000 * 60 * 60 * 4 // 4 hours for harvesting all the components
},
definition: {
timeout: 1000 * 10 // for each component
timeout: 1000 * 60 // for each component
}
}

0 comments on commit 144da92

Please sign in to comment.