ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy Lambert <anto...@gmx.de>
Subject Re: junit skipNotTests zipfileset including inner classes that are not tests
Date Wed, 12 Feb 2014 03:39:44 GMT
Hello,

No idea why the inner classes are being tested. 

as a workaround you could try (untested) :

> <batchtest skipNonTests="yes" todir="${junit.result.dir}">
>        <zipfileset src="foo-testing.jar">
>            <exclude name="**/*TestLocal.class" />
>            <exclude name="**/*$*.class" />
>        </zipfileset>
>    </batchtest>

Regards,

Antoine

On Feb 10, 2014, at 7:17 PM, Marc Benstein <MBenstein@ultramain.com> wrote:

> I am using ant 1.9.3 with junit 4.11 with batchtest skipNonTests="true"
> 
> What is happening is that inner classes of non-test classes are being
> tested. This is resulting in a few failures. Any thoughts on why these
> inner classes that are not test classes are being tested?
> 
> <junit printsummary="no" fork="yes" forkmode="perBatch"
> haltonfailure="no" failureproperty="junit.failure">
>    <classpath>
>        ...
>    </classpath>
>    <formatter type="xml" />
>    <batchtest skipNonTests="yes" todir="${junit.result.dir}">
>        <zipfileset src="foo-testing.jar">
>            <exclude name="**/*TestLocal.class" />
>        </zipfileset>
>    </batchtest>
> </junit>
> 
> Ultramain Systems, Inc.
> 8100 Lang Avenue NE
> Albuquerque, NM 87109
> USA
> 
> TEL 505.828.9000
> FAX 505.823.1841
> www.ultramain.com
> 
> Confidentiality Notice: This email message and any files transmitted with it may contain
confidential information intended only for the person(s) to whom this email is addressed.
If you have received this email in error, please notify the sender immediately by phone or
email and destroy the original message without making a copy. Thank you.
> B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[�\�\�][��X��ܚX�P[��\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[�\�\�Z[[��\X�K�ܙ�B


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message