Replies: 3 comments
-
Beta Was this translation helpful? Give feedback.
-
Yes, that is why I call these tests an army of zombies, it is hard to debug them, and we are slowly moving them to the "application-tests" module. It means always to read them through, do some maintenance, understand what exactly is tested and then using Shrinkwrap instead of Ant to build-deploy-test-undeploy them. With Ant you can comment out some parts in build.xml files, so iterations are faster, set some custom logging and then compare logs before/after to find out where it does something different (in extreme, usually you will find rather some exception or so and you guess what is broken). |
Beta Was this translation helpful? Give feedback.
-
In addition, many of those Ant files also allow you to set a global environment property to execute only a single test. See stuff like this: <macrodef name="run-security-test" xmlns:if="ant:if" xmlns:unless="ant:unless">
<attribute name="path" />
<sequential>
<local name="do-run-test" />
<condition property="do-run-test" else="false">
<or>
<equals arg1="${env.security}" arg2="@{path}" />
<not>
<isset property="env.security" />
</not>
</or>
</condition>
<sequential if:true="${do-run-test}">
<local name="absolute.path" />
<property name="absolute.path" location="@{path}" />
<echo message="${line.separator}${line.separator}${line.separator}" />
<echo message=" ***************************************************************************" />
<echo message=" * Running group @{path} " />
<echo message=" * Path: ${absolute.path} " />
<echo message=" ***************************************************************************" />
<echo message="${line.separator}${line.separator}${line.separator}" />
<ant dir="@{path}" target="all" />
</sequential>
</sequential>
</macrodef> |
Beta Was this translation helpful? Give feedback.
-
I probably made the build fail with a refactoring. The build fails in the Old Additonal / 'ant tests'. For example:
https://ci.eclipse.org/glassfish/job/glassfish_build-and-test-using-jenkinsfile/job/PR-24870/2/#showFailuresLink
The question: is there a way to see more detail on the build server?
I looked at the Console Ouput log, but I cannot seem to find test details, only a list of PASSED, FAILED and TOTAL.
I found the TOTAL definition in the "resultCount.sh" files.
I probably have to run the tests locally using the
scripts.
I succeeded running the 'ant tests' on a Windows machine using WLS. Some notes for running these tests:
./runtests.sh ejb_group_2
-> succeeds.(TODO: glassfish/target/glassfish7 version created by the ant test seems to be an older version than my own build, perhaps -Pfastest is not enough)
Beta Was this translation helpful? Give feedback.
All reactions