On 11 November 2011 02:41, Gary Gregory <garydgreg...@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, <s...@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: garydgreg...@gmail.com | ggreg...@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-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to