Skip to content

Commit

Permalink
(#3032) Fix small tests task
Browse files Browse the repository at this point in the history
  • Loading branch information
squaregoldfish committed Jan 16, 2025
1 parent 28aaa46 commit e56367a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle_junit_CalcCoeffEdit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 17
- name: Run JUnit tests
- name: Run CalculationCoefficientsBean multiple edit tests
run: ./gradlew calculationCoefficientsBeanEditTest jacocoTestReport
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gradle_junit_ExtStdEdit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 17
- name: Run JUnit tests
- name: Run ExternalStandardsBean multiple edit tests
run: ./gradlew externalStandardsBeanEditTest jacocoTestReport
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gradle_junit_SensorCalibEdit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 17
- name: Run JUnit tests
- name: Run SensorCalibrationsBean multiple edit tests
run: ./gradlew sensorCalibrationsBeanEditTest jacocoTestReport
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gradle_junit_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 17
- name: Run JUnit tests
run: ./gradlew test jacocoTestReport
- name: Run small JUnit tests
run: ./gradlew testSmall jacocoTestReport
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,12 @@ tasks.withType(JavaCompile) {

test {
useJUnitPlatform()
}

task testSmall(type: Test) {
useJUnitPlatform()
filter {
includeTestsMatching "uk.ac.exeter.QuinCe.web.Instrument.*BeanMultipleEditTest"
excludeTestsMatching "uk.ac.exeter.QuinCe.web.Instrument.*BeanMultipleEditTest"
}
}

Expand Down

0 comments on commit e56367a

Please sign in to comment.