File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 359359 <mkdir dir =" ${code-coverage-reports}" />
360360
361361 <jacoco : coverage destfile =" ${code-coverage-reports}/jacoco.exec" xmlns : jacoco =" antlib:org.jacoco.ant" exclclassloader =" sun.reflect.DelegatingClassLoader:javassist.Loader" >
362- <junit haltonfailure =" false" fork =" true" forkmode =" once" >
362+ <junit haltonfailure =" false" failureproperty = " test.failed " errorproperty = " test.failed " fork =" true" forkmode =" once" >
363363 <jvmarg value =" -Xms128m" />
364364 <jvmarg value =" -Xmx2048m" />
365365 <!-- https://stackoverflow.com/questions/54205486 -->
376376 </batchtest >
377377 </junit >
378378 </jacoco : coverage >
379+
380+ <fail if =" test.failed" message =" Unit tests failed. Check reports for details." />
379381 </target >
380382
381383 <target name =" remove-classes" depends =" init" >
Original file line number Diff line number Diff line change 9898 <mkdir dir =" ${ code-coverage-reports } " />
9999
100100 <jacoco : coverage destfile =" ${ code-coverage-reports } /jacoco.exec" xmlns : jacoco =" antlib:org.jacoco.ant" exclclassloader =" sun.reflect.DelegatingClassLoader:javassist.Loader" >
101- <junit haltonfailure =" false" fork =" true" forkmode =" once" >
101+ <junit haltonfailure =" false" failureproperty = " test.failed " errorproperty = " test.failed " fork =" true" forkmode =" once" >
102102 <jvmarg value =" -Xms128m" />
103103 <jvmarg value =" -Xmx2048m" />
104104 <!-- https://stackoverflow.com/questions/54205486 -->
115115 </batchtest >
116116 </junit >
117117 </jacoco : coverage >
118+
119+ <fail if =" test.failed" message =" Unit tests failed. Check reports for details." />
118120 </target >
119121</project >
Original file line number Diff line number Diff line change 9797 <mkdir dir =" ${ code-coverage-reports } " />
9898
9999 <jacoco : coverage destfile =" ${ code-coverage-reports } /jacoco.exec" xmlns : jacoco =" antlib:org.jacoco.ant" exclclassloader =" sun.reflect.DelegatingClassLoader:javassist.Loader" >
100- <junit haltonfailure =" false" fork =" true" forkmode =" once" >
100+ <junit haltonfailure =" false" failureproperty = " test.failed " errorproperty = " test.failed " fork =" true" forkmode =" once" >
101101 <jvmarg value =" -Xms128m" />
102102 <jvmarg value =" -Xmx2048m" />
103103 <!-- https://stackoverflow.com/questions/54205486 -->
114114 </batchtest >
115115 </junit >
116116 </jacoco : coverage >
117+
118+ <fail if =" test.failed" message =" Unit tests failed. Check reports for details." />
117119 </target >
118120
119121 <target name =" remove-classes" depends =" init" >
Original file line number Diff line number Diff line change 13171317 <mkdir dir =" ${ junit-html } " />
13181318
13191319 <jacoco : coverage destfile =" ${ code-coverage-reports } /jacoco.exec" xmlns : jacoco =" antlib:org.jacoco.ant" exclclassloader =" sun.reflect.DelegatingClassLoader:javassist.Loader" >
1320- <junit haltonfailure =" false" fork =" true" forkmode =" once" >
1320+ <junit haltonfailure =" false" failureproperty = " test.failed " errorproperty = " test.failed " fork =" true" forkmode =" once" >
13211321 <jvmarg value =" -Xms128m" />
13221322 <jvmarg value =" -Xmx2048m" />
13231323 <!-- https://stackoverflow.com/questions/54205486 -->
13561356 </fileset >
13571357 <report format =" frames" todir =" ${ junit-html } " />
13581358 </junitreport >
1359+
1360+ <fail if =" test.failed" message =" Unit tests failed. Check reports for details." />
13591361 </target >
13601362
13611363 <target name =" remove-classes" depends =" init" >
You can’t perform that action at this time.
0 commit comments