You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Owen <mi...@hotmail.com> on 2005/07/14 18:46:59 UTC
M2: JUnit Testing
Hi,
Using M2.
Firstly, when I run test, it runs surefire and not JUnit as shown in Maven 1
documentation. Is surefire better and/or how do I get JUnit to run the
tests?
Secondly, how do I get a HTML report showing the outcome of the JUnit tests
run e.g. number of successful tests, error messages for invalid ones etc. on
HTML page? (Any chance of saying what needs to be put in pom.xml file)
Many thanks,
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: M2: JUnit Testing
Posted by Emmanuel Venisse <em...@venisse.net>.
Michael Owen wrote:
> Hi,
>
> Using M2.
>
> Firstly, when I run test, it runs surefire and not JUnit as shown in
> Maven 1 documentation. Is surefire better and/or how do I get JUnit to
> run the tests?
Surefire create a specific classloader for tests without maven classes
in it. Surefire embed JUnit, so you write your tests like in m1.
Create them in src/test/java.
>
> Secondly, how do I get a HTML report showing the outcome of the JUnit
> tests run e.g. number of successful tests, error messages for invalid
> ones etc. on HTML page? (Any chance of saying what needs to be put in
> pom.xml file)
The test report doesn't exist for the moment. It'll exist in a near future.
Emmanuel
>
> Many thanks,
>
> Mike
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: M2: JUnit Testing
Posted by John Casey <jd...@commonjava.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Surefire is used to setup and run the JUnit tests (I think it's a
replacement for the JUnit test-runner tools, but I'm not sure). The long
and the short of it is that surefire *should* produce the same results
as the m1 junit stuff...
...with the exception of reporting, which is still in the work queue for
2.0, I believe. You're welcome to lend a hand toward this goal, if you'd
like. ;-)
- -john
Michael Owen wrote:
| Hi,
|
| Using M2.
|
| Firstly, when I run test, it runs surefire and not JUnit as shown in
| Maven 1 documentation. Is surefire better and/or how do I get JUnit to
| run the tests?
|
| Secondly, how do I get a HTML report showing the outcome of the JUnit
| tests run e.g. number of successful tests, error messages for invalid
| ones etc. on HTML page? (Any chance of saying what needs to be put in
| pom.xml file)
|
| Many thanks,
|
| Mike
|
|
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
| For additional commands, e-mail: users-help@maven.apache.org
|
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFC1poMK3h2CZwO/4URAmFmAKCms0dNhIH8GAq7ZyxVjv9IzberygCgkHc4
5ph7p74e9lLy2bxOKDaS8hU=
=5btN
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org