Skip to content

Commit 8f5af43

Browse files
committed
Configure evaluation module in workflow
1 parent 4d0a414 commit 8f5af43

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/test.yml

+15-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if: (github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork || startsWith(github.head_ref, 'dependabot/')))
1919
strategy:
2020
matrix:
21-
scope: [Petstore, Market, GestaoHospital]
21+
scope: [Petstore, Market, GestaoHospital, Eval]
2222
fail-fast: false
2323

2424
steps:
@@ -68,18 +68,27 @@ jobs:
6868
key: cache-${{ matrix.scope }}-v1-${{ github.run_id }}
6969
restore-keys: cache-${{ matrix.scope }}-v1-
7070

71-
- name: Test All
71+
- name: Test All SUTs
72+
if: ${{ matrix.scope != 'Eval' }}
7273
env:
7374
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7475
run: mvn test -pl st-tdg-test -Dtest=**/*${{ matrix.scope }}* -Dmaven.test.failure.ignore=true -U --no-transfer-progress
7576

76-
- if: ${{ matrix.scope == 'Petstore' }}
77+
- name: Evaluate Mutation Score
78+
if: ${{ matrix.scope == 'Eval' }}
79+
env:
80+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81+
run: |
82+
mvn -pl st-tdg-eval test -Dmaven.test.failure.ignore=true -U --no-transfer-progress
83+
mvn -pl st-tdg-eval test-compile org.pitest:pitest-maven:mutationCoverage
84+
85+
- if: ${{ always() && matrix.scope == 'Petstore' }}
7786
run: docker logs swagger-petstore > st-tdg-test/target/docker-petstore-server.log
78-
- if: ${{ matrix.scope == 'Market' }}
87+
- if: ${{ always() && matrix.scope == 'Market' }}
7988
run: |
8089
docker logs market-rest > st-tdg-test/target/docker-market-server.log
8190
docker logs db > st-tdg-test/target/docker-market-db.log
82-
- if: ${{ matrix.scope == 'GestaoHospital' }}
91+
- if: ${{ always() && matrix.scope == 'GestaoHospital' }}
8392
run: |
8493
docker logs gestaohospital > st-tdg-test/target/docker-gestaoHospital-server.log
8594
docker logs mongodb > st-tdg-test/target/docker-gestaoHospital-db.log
@@ -100,5 +109,6 @@ jobs:
100109
path: |
101110
**/target/site
102111
**/target/surefire-reports
112+
**/target/pit-reports
103113
**/target/*.html
104114
**/target/*.log

0 commit comments

Comments
 (0)