You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Michael Giannakopoulos <mi...@gmail.com> on 2011/03/05 20:25:21 UTC

[Math] About junit tests

Hello guys,

I see some issues in commons math project refering to junit tests... I would
like to ask you how i can run and test if these unit tests run properly...
(Should i create a main class and function so as to call these junits tests
so as to run them via the eclipse ide???). I would like to help on those
issues and i would be grateful if someone put me into this! Thanks for your
time!

Cheers,
Michael Giannakopoulos

Re: [Math] About junit tests

Posted by sebb <se...@gmail.com>.
On 5 March 2011 19:25, Michael Giannakopoulos <mi...@gmail.com> wrote:
> Hello guys,
>
> I see some issues in commons math project refering to junit tests... I would
> like to ask you how i can run and test if these unit tests run properly...
> (Should i create a main class and function so as to call these junits tests
> so as to run them via the eclipse ide???). I would like to help on those
> issues and i would be grateful if someone put me into this! Thanks for your
> time!

You can just select the class in Eclipse and run the unit test
directly, assuming that the classpath has got JUnit in it.

Or you can run from Maven:

mvn test [ -Dtest=FastMathTestPerformance ]

or Ant:

ant test [ -Dtest.entry=org.apache.commons.math.util.FastMathTestPerformance ]

without the -D qualifier, Maven and Ant will run all the tests (except
the one mentioned above)

> Cheers,
> Michael Giannakopoulos
>

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


Re: [Math] About junit tests

Posted by Ole Ersoy <ol...@gmail.com>.
Hi Michael,

To run the tests I did the following:

Checkout the trunk
cd into the trunk
run the following:
mvn eclipse:eclipse
import commons-math into eclipse

Now you should be able to right click any test and select "Run Test".
You can also right click on individual test methods and select "Run Test" and this will run the method only.

Cheers,
- Ole

P.S. If you need to run all the tests just run:
mvn test

On 03/05/2011 01:25 PM, Michael Giannakopoulos wrote:
> Hello guys,
>
> I see some issues in commons math project refering to junit tests... I would
> like to ask you how i can run and test if these unit tests run properly...
> (Should i create a main class and function so as to call these junits tests
> so as to run them via the eclipse ide???). I would like to help on those
> issues and i would be grateful if someone put me into this! Thanks for your
> time!
>
> Cheers,
> Michael Giannakopoulos
>

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