按照标题,我正在使用TestFX在JavaFX应用程序的GUI上运行一些简单的测试。每当我运行gradle测试时,结果将返回340个测试中通过的340个测试。但是,在Github的工作流程中检查拉取请求时,它说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
但是在本地,当我运行build时一切都很好。
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%的文本成功。有人能够提供对此问题的见解吗?