maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Anderson <benanderson...@gmail.com>
Subject maven test:test
Date Wed, 03 Nov 2004 12:23:58 GMT
Hi,
I have this in my project.xml
  <build>
    <sourceDirectory>${maven.src.dir}/com</sourceDirectory>
    <resources>
      <resource>
        <directory>${maven.src.dir}</directory>
        <includes>
          <include>*.xml</include>
          <include>*.dtd</include>
        </includes>
      </resource>
    </resources>
    <unitTest>
      <includes>
        <include>${maven.src.dir}/**/*Test*.java</include>
      </includes>
      <excludes>
        <exclude>${maven.src.dir}/**/TestAll.java</exclude>
        <exclude>${maven.src.dir}/**/*Abstract*.java</exclude>
      </excludes>
    </unitTest>
  </build>

my maven.src.dir I define elsewhere, but that's beside the point.  I
have a Test file right along side the rest of my src code.  When I do
java:compile, it gets compiled.  But when I do test:test I get "no
tests to run".  I tried taking out the ${maven.src.dir} inside the
<unitTest> tags, but that didn't help.  Any ideas what I'm doing
wrong?
Thanks,
Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message