commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: svn commit: r1200701 - /commons/proper/io/trunk/pom.xml
Date Fri, 11 Nov 2011 03:08:34 GMT
On 11 November 2011 02:41, Gary Gregory <garydgregory@gmail.com> wrote:
> Shouldn't the test data be in a resources folder?

It is, but the resources/org folder is copied to target/org.
Anyway, the includes would have included the resources folder.

Often pom.xml contains includes of the form *Test*.java - this works,
because Surefire converts java to class.
But if the extension is left off, everything is included.

> Gary
>
> On Thu, Nov 10, 2011 at 9:39 PM, <sebb@apache.org> wrote:
>
>> Author: sebb
>> Date: Fri Nov 11 02:39:20 2011
>> New Revision: 1200701
>>
>> URL: http://svn.apache.org/viewvc?rev=1200701&view=rev
>> Log:
>> Surefire blindly treats all matching files as potential test classes
>> Ensure only .class files are selected
>>
>> Modified:
>>    commons/proper/io/trunk/pom.xml
>>
>> Modified: commons/proper/io/trunk/pom.xml
>> URL:
>> http://svn.apache.org/viewvc/commons/proper/io/trunk/pom.xml?rev=1200701&r1=1200700&r2=1200701&view=diff
>>
>> ==============================================================================
>> --- commons/proper/io/trunk/pom.xml (original)
>> +++ commons/proper/io/trunk/pom.xml Fri Nov 11 02:39:20 2011
>> @@ -262,7 +262,8 @@
>>               <!-- limit memory size see IO-161 -->
>>               <argLine>-Xmx25M</argLine>
>>             <includes>
>> -              <include>**/*Test*</include>
>> +              <!-- Only include test classes, not test data -->
>> +              <include>**/*Test*.class</include>
>>             </includes>
>>             <excludes>
>>               <exclude>**/*AbstractTestCase*</exclude>
>>
>>
>>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message