cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: Code freeze?
Date Tue, 18 Sep 2007 18:24:00 GMT
Grzegorz Kossakowski wrote:
> Vadim Gritsenko pisze:
>> Fails here on mac os:
>>
>>   Results :
>>   Tests run: 98, Failures: 1, Errors: 0, Skipped: 0
>>
>> Is there an easy way to find out which test fails?
> 
> That's good question, I wondered about it too.
> Meanwhile I suggest to just go to cocoon-core/target/surefire and sort files by their
size. The file
> containing report about failing test is the biggest one.

Well this method does not work :)
   TEST-org.apache.cocoon.matching.CookieMatcherTestCase.xml:
   <testsuite errors="0" skipped="0" tests="2" time="0.033" failures="0" 
name="org.apache.cocoon.matching.CookieMatcherTestCase">

No failures in the biggest report! And next biggest, and so on... Anyway here is 
*really* ugly way to find it:

$ find . -name "TEST-*.xml" | xargs grep failures=.1.
./core/cocoon-core/target/surefire-reports/TEST-org.apache.cocoon.components.source.impl.CachingSourceTestCase.xml:<testsuite

errors="0" skipped="0" tests="6" time="11.521" failures="1" 
name="org.apache.cocoon.components.source.impl.CachingSourceTestCase">


And here is error:

     <failure type="junit.framework.AssertionFailedError" message="expected 
same:&amp;lt;org.apache.cocoon.components.source.impl.CachingSource$SourceMeta@c07f58&amp;gt;

was 
not:&amp;lt;org.apache.cocoon.components.source.impl.CachingSource$SourceMeta@e89f1b&amp;gt;">junit.framework.AssertionFailedError:

expected 
same:&amp;org.apache.cocoon.components.source.impl.CachingSource$SourceMeta@c07f58&amp;

was 
not:&amp;org.apache.cocoon.components.source.impl.CachingSource$SourceMeta@e89f1b&amp;
         at junit.framework.Assert.fail(Assert.java:47)
         at junit.framework.Assert.failNotSame(Assert.java:276)
         at junit.framework.Assert.assertSame(Assert.java:239)
         at junit.framework.Assert.assertSame(Assert.java:246)
         at 
org.apache.cocoon.components.source.impl.CachingSourceTestCase.testCachingURI(CachingSourceTestCase.java:86)
</failure>


PS Ant had this nifty task generating junit html reports...

Vadim

Mime
View raw message