gpt4 book ai didi

junit - 升级到2.8.2后,GWT Junit失败

转载 作者:行者123 更新时间:2023-12-02 10:57:35 25 4
gpt4 key购买 nike

我一直在为其中一个项目使用GWT 2.4。最近,我已将GWT版本升级到2.8.2,并且现有的Junit无缘无故地失败了。请帮助我解决问题。

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.769 sec
------------- Standard Error -----------------
Unknown argument: -standardsMode
Google Web Toolkit 2.8.2
------------- ---------------- ---------------

Testcase: testOne took 0.537 sec
Caused an ERROR Error processing shell arguments
com.google.gwt.junit.JUnitFatalLaunchException: Error processing shell arguments
at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:696)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:682)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:421)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:247)


[exec] -test.dev:
[exec] [mkdir] Created dir: C:\gitrepos\Python\petroApps\isdBuild\JDK_1.8\isdApps\topaz\gui\impl\web\client\gwt\pres\reports\htmlunit.dev
[exec] [junit] WARNING: multiple versions of ant detected in path for junit
[exec] [junit] jar:file:/C:/gitrepos/Python/petroApps/isdMWare/buildTools/apache/ant/V1.9.6/lib/ant.jar!/org/apache/tools/ant/Project.class
[exec] [junit] and jar:file:/C:/gitrepos/Python/petroApps/isdMWare/java/apis/google/gwt/V2.8.2/lib/gwt-dev.jar!/org/apache/tools/ant/Project.class
[exec] [junit] Running com.verifone.isd.topaz.gui.impl.web.client.gwt.pres.POSPresTestSuite
[exec] [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.769 sec

[exec] BUILD FAILED

最佳答案

在GWT 2.7.0(RC1)中,-standardsMode已被删除。

“已删除的标志:-standardsMode,-nostandardsMode,-quirksMode。(GWTTestCase测试始终在标准模式下的HTML页面中运行。)

另请:GWT Release Notes

要解决您的问题,请删除参数。

关于junit - 升级到2.8.2后,GWT Junit失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57852293/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com