You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-dev@incubator.apache.org by Eric Crahen <er...@gmail.com> on 2007/03/26 14:51:43 UTC
Failing unit tests
I ran into an intermittent error with the unit tests. This one is from
testFull() on the tip of trunk.
[junit] Running
org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorWriterTest
[junit] <artifact name="yourartifact9-1" type="jar"
ext="jar" conf="myconf1,myconf2"/>
[junit] <artifact name="yourartifact9-2" type="jar"
ext="jar" conf="myconf2,myconf3]"/>
[junit] </dependency>
[junit] ...> but was:<...v="9.1"
conf="myconf[3->default;myconf2->default;myconf1->default">
[junit] <artifact name="yourartifact9-2" type="jar"
ext="jar" conf="myconf2,myconf3"/>
[junit] <artifact name="yourartifact9-1" type="jar"
ext="jar" conf="myconf1,myconf2]"/>
[junit] <.
From the looks of it the tests have assumed an order that isn't really
enforced by the writer. I'm not familiar enough with the code to say there
is a bug in the writer which should be writing these things out in an
expected order, or if the tests should be doing a content comparison instead
of a string comparison.
--
- Eric
Re: Failing unit tests
Posted by Xavier Hanin <xa...@gmail.com>.
On 3/26/07, Eric Crahen <er...@gmail.com> wrote:
>
> I ran into an intermittent error with the unit tests. This one is from
> testFull() on the tip of trunk.
>
> [junit] Running
> org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorWriterTest
> [junit] <artifact name="yourartifact9-1"
> type="jar"
> ext="jar" conf="myconf1,myconf2"/>
> [junit] <artifact name="yourartifact9-2"
> type="jar"
> ext="jar" conf="myconf2,myconf3]"/>
> [junit] </dependency>
> [junit] ...> but was:<...v="9.1"
> conf="myconf[3->default;myconf2->default;myconf1->default">
> [junit] <artifact name="yourartifact9-2"
> type="jar"
> ext="jar" conf="myconf2,myconf3"/>
> [junit] <artifact name="yourartifact9-1"
> type="jar"
> ext="jar" conf="myconf1,myconf2]"/>
> [junit] <.
>
> From the looks of it the tests have assumed an order that isn't really
> enforced by the writer. I'm not familiar enough with the code to say there
> is a bug in the writer which should be writing these things out in an
> expected order, or if the tests should be doing a content comparison
> instead
> of a string comparison.
Yes, this is already reported in IVY-374, and I'm just working on it.
- Xavier
--
>
> - Eric
>