這看起來複制的東西對SO但是我已經看過this,this,this和this,但還沒有找到問題的解決。AssertionFailedError異常派生的Java虛擬機異常退出的不存在的測試套件
我遇到的問題是我在jenkins上得到了這個錯誤,不存在測試套件。下面是jenkins ant build log中顯示的錯誤;
compile-tests-run:
[junit] Testsuite: com.smartstream.control.engine.validation.Batch-With-Multiple-Tests
[junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
[junit]
[junit] Testcase: null took 0 sec
[junit] Caused an ERROR
[junit] Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
[junit] junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
[junit]
[junit] Running com.smartstream.control.engine.validation.Batch-With-Multiple-Tests
[junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
BUILD FAILED
u:\jenkins\workspace\control.unittests.execution.time.test\build\build.xml:256: The following error occurred while executing this line:
u:\jenkins\workspace\control.unittests.execution.time.test\engine\build\build.xml:287: Process fork failed.
Total time: 7 minutes 42 seconds
Build step 'Invoke Ant' marked build as failure
Archiving artifacts
Recording test results
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
Sending email to: [email protected]
Finished: FAILURE
現在你可以看到它似乎是在com.smartstream.control.engine.validation.Batch-With-Multiple-Tests
失敗,但是我沒有任何這樣的測試套件,在我的整個工作區。我甚至無法在項目中的任何位置找到它作爲字符串。
我試圖增加螞蟻建立內存和permgen無濟於事。該版本使用java 1.7.0_80-b15和ant 1.9.6運行。下面是engine/build.xml文件中的junit ant任務規範;
<junit dir="." haltonfailure="false" printsummary="yes" forkmode="once" fork="yes" showoutput="yes" failureproperty="tests.failed">
<classpath location="${build.testclasses}" />
<classpath location="${resources.dir}" />
<classpath location="${common.properties}" />
<classpath location="${common.libs}" />
<formatter type="xml" />
<formatter type="plain" usefile="false" />
<jvmarg value="-Demma.coverage.out.file=${build.coveragereport}/coverage.emma" />
<jvmarg value="-Demma.coverage.out.merge=true" />
<jvmarg value="-Xms512m" />
<jvmarg value="-Xmx1536m" />
<jvmarg value="-XX:MaxPermSize=512m" />
<jvmarg value="-XX:-UseSplitVerifier"/>
<batchtest todir="${build.report}">
<fileset dir="${test.dir}">
<include name="**/*Test.java" />
<exclude name="${excludeTestPattern1}" />
<exclude name="${excludeTestPattern2}" />
<exclude name="${excludeTestPattern3}" />
<exclude name="${excludeTestPattern4}" />
<exclude name="${excludeTestPattern5}" />
</fileset>
</batchtest>
</junit>
我已經試過到目前爲止
- 對詹金斯的工作檢查
Delete workspace before build starts
一個完整乾淨的構建。 - 初始XMX是512米我更新了它是1024米再後來1536米
- 首次燙髮的大小爲256M,已經更新到512M
- 已經在Ant任務與
fork
和showoutput
屬性發揮各地 - 更新Java和從最初嘗試的螞蟻版本
任何幫助將不勝感激。
也請賜教downvote的原因。 – Setu
仿真名稱'Batch-With-Multiple-Tests'由Ant生成,請參閱https://bz.apache.org/bugzilla/show_bug.cgi?id=45227#c2 – wero
@wero感謝您的信息。所以你知道一種獲得關於這個失敗的更多信息的方法。 – Setu