Author: rwhitcomb
Date: Mon May 15 01:06:58 2017
New Revision: 1795128

URL: http://svn.apache.org/viewvc?rev=1795128&view=rev
Log:
Trying to debug why unit tests are failing on Jenkins:
* Halt and fail the build if the unit tests fail.
* Turn on "verbose" for the tests to see exactly what's wrong
  (note: this should be reverted once the cause is pinpointed).


Modified:
    pivot/trunk/build.properties
    pivot/trunk/build.xml

Modified: pivot/trunk/build.properties
URL: 
http://svn.apache.org/viewvc/pivot/trunk/build.properties?rev=1795128&r1=1795127&r2=1795128&view=diff
==============================================================================
--- pivot/trunk/build.properties (original)
+++ pivot/trunk/build.properties Mon May 15 01:06:58 2017
@@ -33,5 +33,5 @@ compiler.indexJars=true
 compiler.arg=-Xlint
 
 # Test properties
-test.verbose=false
+test.verbose=true
 

Modified: pivot/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/pivot/trunk/build.xml?rev=1795128&r1=1795127&r2=1795128&view=diff
==============================================================================
--- pivot/trunk/build.xml (original)
+++ pivot/trunk/build.xml Mon May 15 01:06:58 2017
@@ -180,7 +180,7 @@ limitations under the License.
                 <istrue value="${test.verbose}"/>
             </condition>
 
-            <junit fork="true">
+            <junit fork="true" haltonfailure="true" 
failureproperty="unit.tests.failed">
                 <classpath>
                     <path refid="classpath.general"/>
                     <dirset dir="${basedir}" includes="**/${folder.bin}"/>
@@ -457,6 +457,7 @@ limitations under the License.
         <test project="web-server"/>
         <test project="wtk"/>
         <test project="wtk-terra"/>
+        <fail if="unit.tests.failed" message="Error: One or more tests 
failed!"/>
     </target>
 
     <!-- Clean -->


Reply via email to