根据标题,我正在使用 TestFX 在 JavaFX 应用程序的 GUI 上运行一些简单的测试。每当我运行 gradle 测试时,结果将返回 340 次测试中的 340 次测试。然而,在 Github 的 pull request 工作流检查中,它显示 340 个测试通过,1 个失败。
> Task :test
seedu.address.ui.WidgetViewBoxTest > update_matchingContent(FxRobot) FAILED
java.lang.RuntimeException
Caused by: java.lang.UnsupportedOperationException
340 tests completed, 1 failed
> Task :test FAILED
> Task :jacocoTestReport
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/runner/work/tp/tp/build/reports/tests/test/index.html
然而在本地,当我运行构建时一切都很好。
11:43:12 PM: Executing task 'build'...
> Task :compileJava UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :jar UP-TO-DATE
> Task :startScripts UP-TO-DATE
> Task :distTar UP-TO-DATE
> Task :distZip UP-TO-DATE
> Task :shadowJar UP-TO-DATE
> Task :startShadowScripts UP-TO-DATE
> Task :shadowDistTar UP-TO-DATE
> Task :shadowDistZip UP-TO-DATE
> Task :assemble UP-TO-DATE
> Task :checkstyleMain UP-TO-DATE
> Task :compileTestJava UP-TO-DATE
> Task :processTestResources UP-TO-DATE
> Task :testClasses UP-TO-DATE
> Task :checkstyleTest UP-TO-DATE
> Task :test UP-TO-DATE
> Task :jacocoTestReport UP-TO-DATE
> Task :check UP-TO-DATE
> Task :build UP-TO-DATE
BUILD SUCCESSFUL in 0s
16 actionable tasks: 16 up-to-date
11:43:13 PM: Task execution finished 'build'.
我在 TestFX github 页面上找不到任何相关问题。并且在 index.html 中生成的测试报告表明 100% 的文本成功。任何人都可以提供有关此问题的见解?