URL:http://svn.apache.org/viewvc?rev=1795235&view=rev
Log:
Add "hamcrest-core-1.3.jar" to the Jenkins build to resolve the dependencies
in JUnit 4.12.
And this resolves the tests failing...
~Roger
On 5/15/17 10:37 AM, Roger and Beth Whitcomb wrote:
So, "trunk" needs Apache Commons VFS2 in order to compile the
VFSBrowser (and skin) classes, but the 2.0.x branch does not have this
functionality. We also need "SVGSalamander" for the SVG serializer.
Both these are in the "wtk/lib" directory for compilation. Neither is
needed at runtime unless you use the dependent functionality. But
other than that, only JUnit for testing, so there are no other
external dependencies.
On 5/15/17 2:53 AM, Niclas Hedhman wrote:
Doesn't Pivot have any external dependencies at all?
On Mon, May 15, 2017 at 10:03 AM, Roger and Beth Whitcomb <
rogerandb...@rbwhitcomb.com> wrote:
Done. Will see what the next build does...
But, it looks like we're missing one (or more) of the Hamcrest files
that
"JUnit" depends on in our Jenkins setup. I have no idea how to fix
that
....
~Roger
On 5/14/17 6:53 PM, Niclas Hedhman wrote:
That will stop the build when tests fail. I suggest remove the
haltonfailure but keep the rest.
On May 15, 2017 09:08, "Roger and Beth Whitcomb" <
rogerandb...@rbwhitcomb.com> wrote:
Committed these changes:
Index: build.properties
===================================================================
--- build.properties (revision 1795127)
+++ build.properties (working copy)
@@ -33,5 +33,5 @@
compiler.arg=-Xlint
# Test properties
-test.verbose=false
+test.verbose=true
Index: build.xml
===================================================================
--- build.xml (revision 1795127)
+++ build.xml (working copy)
@@ -180,7 +180,7 @@
<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 @@
<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 -->
Sending build.properties
Sending build.xml
Transmitting file data ..done
Committing transaction...
Committed revision 1795128.
~Roger
On 5/12/17 11:06 PM, Roger Whitcomb wrote:
Thanks, Niclas.... Working on that now.
~Roger
On 5/12/17 8:57 PM, Niclas Hedhman wrote:
The answer is in Ant documentation for JunitTask
haltonfailure Stop the build process if a test fails (errors are
considered
failures as well). No; default is off.
You should add a
<failureproperty>pivot_unit_fail</failureproperty> in
the
JunitTask configuration, and then at the very last task you
should add
a
<fail><condition> checking if that property has been set.
Cheers
Niclas
On Sat, May 13, 2017 at 1:18 AM, Roger Whitcomb <
roger.whitc...@actian.com>
wrote:
Hi all,
I was just poking around the "trunk on Java 7"
builds
on
Jenkins and noticed that almost all the tests are failing. Any
idea
why?
Any idea why the build doesn't fail if the tests fail?
This is from here: https://builds.apache.org/blue
/organizations/jenkins/
Pivot-trunk%20on%20Java%207/detail/Pivot-trunk%20on%
20Java%207/1223/pipeline
test:
[echo] charts: Executing test cases...
[echo] core: Executing test cases...
[junit] Test org.apache.pivot.beans.test.BeanAdapterTest
FAILED
[junit] Test
org.apache.pivot.collections.test.ArrayListTest
FAILED
[junit] Test org.apache.pivot.collections.test.EnumListTest
FAILED
[junit] Test org.apache.pivot.collections.test.EnumMapTest
FAILED
[junit] Test org.apache.pivot.collections.test.HashMapTest
FAILED
[junit] Test org.apache.pivot.collections.test.HashSetTest
FAILED
[junit] Test
org.apache.pivot.collections.test.LinkedListTest
FAILED
[junit] Test org.apache.pivot.collections.test.QueueTest
FAILED
[junit] Test org.apache.pivot.collections.test.StackTest
FAILED
[junit] Test org.apache.pivot.collections.t
est.SynchronizedQueueTest
FAILED
[junit] Test org.apache.pivot.collections.t
est.SynchronizedStackTest
FAILED
[junit] Test
org.apache.pivot.functional.monad.test.OptionTest
FAILED
[junit] Test org.apache.pivot.functional.monad.test.TryTest
FAILED
[junit] Test org.apache.pivot.json.test.BindTest FAILED
[junit] Test org.apache.pivot.json.test.JSONSerializerTest
FAILED
[junit] Test org.apache.pivot.serialization
.test.BinarySerializerTest
FAILED
[junit] Test org.apache.pivot.serialization
.test.ByteArraySerializerTest
FAILED
[junit] Test org.apache.pivot.serialization
.test.CSVSerializerTest
FAILED
[junit] Test org.apache.pivot.serialization
.test.PropertiesSerializerTest
FAILED
[junit] Test org.apache.pivot.serialization
.test.StringSerializerTest
FAILED
[junit] Test org.apache.pivot.util.concurrent.test.TaskTest
FAILED
[junit] Test org.apache.pivot.util.test.MIMETypeTest FAILED
[junit] Test org.apache.pivot.util.test.ParentResourcesTest
FAILED
[junit] Test org.apache.pivot.util.test.TimeTest FAILED
[junit] Test org.apache.pivot.util.test.VersionTest FAILED
[junit] Test org.apache.pivot.xml.test.XMLSerializerTest
FAILED
[echo] demos: Executing test cases...
[echo] demos-server: Executing test cases...
[echo] tests: Executing test cases...
[echo] tutorials: Executing test cases...
[echo] tutorials-server: Executing test cases...
[echo] web: Executing test cases...
[junit] Test org.apache.pivot.web.test.QueryDictionaryTest
FAILED
[echo] web-server: Executing test cases...
[echo] wtk: Executing test cases...
[echo] wtk-terra: Executing test cases...
Thanks,
Roger Whitcomb