only:junit usability

This commit is contained in:
rusefillc 2023-06-18 23:57:43 -04:00
parent f2df4142da
commit ccc3cbf22f
2 changed files with 8 additions and 2 deletions

View File

@ -53,11 +53,17 @@ jobs:
working-directory: ./java_tools
run: ./gradlew test
- name: Publish Gradle Test Report
uses: mikepenz/action-junit-report@v3
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
- name: Build console
working-directory: ./java_console
run: ant jar
- name: Attach console junit results
- name: Attach Ant console junit results
if: always()
uses: actions/upload-artifact@v3
with:

View File

@ -75,7 +75,7 @@ public class JniUnitTest {
System.out.println("engineLogic.invokeEtbCycle");
engineLogic.invokeEtbCycle();
assertEquals(120.38, getValue(engineLogic.getOutputs(), Sensor.etb1DutyCycle));
assertEquals("ETB duty", 120.38, getValue(engineLogic.getOutputs(), Sensor.etb1DutyCycle));
}
private double getField(EngineLogic engineLogic, Field field) {