RE: How to run unit test

mark mark <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <[email protected]>
 --- Stephen McConnell <[email protected]> wrote: 

> Test cases should be located in 'src/test' so for
> example the above file
> should be moved to:
> 
>   src/test/com/itmedico/hellotest/HelloCoponent.java
> 
I think you meant for me to move the
TestHelloComponent.java file.

OK.  I did that and things seem to have progressed
further.

Here is what "ant test" now reports:
... snip output of dependent targets ...
test:
  [x:junit] Compiling 1 source file to
/home/mark/Projects/hellotest/target/test-classes
  [x:junit] Created dir:
/home/mark/Projects/hellotest/target/test-reports

When I check these directories, test-classes does
indeed contain the compiled class file for
TestHelloComponent, however test-reports is empty.

How do I actually run the test?

Regards.
Mark.


Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.