|
From: Holger S. <ho...@sc...> - 2016-06-15 19:54:58
|
Yes, I will take care to not to duplicate code. :-) I would like to use XMLJUnitResultFormatter from package org.apache.tools.ant.taskdefs.optional.junit. I would need to change DbUnitTask.execute() method in package org.dbunit.ant at line 385 to catch Error thrown by step.execute(connection). The Error is created by FailureHandler in DbUnitAssert.assertEquals and should be of type DbComparisonFailure. This DbComparisonFailure can easily be used to provide corresponding information to XMLJUnitResultFormatter. One question regarding building dbunit. When I check out code/dbunit from http://git.code.sf.net/p/dbunit/code.git <http://git.code.sf.net/p/dbunit/code.git> and run mvn I get some test errors (see below). pom.xml says 2.5.3-SNAPSHOT. Am I using the wrong branch? Would tag dbunit-2.5.2 be a better start for my development? Failed tests: DatabaseSequenceFilterTest.testGetTableNamesCyclic:112 expected:<Table: [D ([A, C], E])> but was:<Table: [A ([C, D], E])> BiDirectionalEdgesDepthFirstSearchTest.testDisconnectedCycles:193->AbstractSearchTestCase.doIt:72 mismatched element at position 0 expected:<D> but was:<A> DepthFirstSearchTest.testDisconnectedCycles:147->AbstractSearchTestCase.doIt:72 mismatched element at position 0 expected:<F> but was:<C> Best regards Holger P.S. Dependency to org.apache.tools.ant.taskdefs.optional.junit would be I guess <dependency> <groupId>ant</groupId> <artifactId>ant-junit</artifactId> <version>1.6.5</version> </dependency> > Am 15.06.2016 um 14:28 schrieb Jeff Jensen <jj...@ap...>: > > If you add this feature, please delegate to dependencies as much as possible instead of copying code to dbUnit. |