You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Dan Becker <da...@gmail.com> on 2008/03/26 15:49:38 UTC

Tuscany JUnit tests

I notice most every Tuscany component has JUnit tests associated with 
it. I also notice that these tests are run as part of a normal Maven 
build (which you can turn on and off via -Dmaven.test.skip=true).

1) Are there other Maven test related switches? Specifically, is there a 
Maven switch/target/profile to just run the unit tests without a build?

2) Is there a to run these JUnit test cases from within an Eclipse 
project? Perhaps some test perspective or some menu item that 
understands JUnit test cases.

I saw the Tuscany Wiki had some good articles on testing (e.g. 
http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Automation+of+itests+in+web+applications), 
but I would like to grow my knowledge here.
-- 
Thanks, Dan Becker

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


Re: Tuscany JUnit tests

Posted by Vamsavardhana Reddy <c1...@gmail.com>.
You will need to install m2eclipse plugin to be able to run maven builds
from within Eclipse.  See http://m2eclipse.codehaus.org/

++Vamsi

On Wed, Mar 26, 2008 at 8:40 PM, Dan Becker <da...@gmail.com> wrote:

> Kevin Williams wrote:
> > On Wed, Mar 26, 2008 at 8:49 AM, Dan Becker <da...@gmail.com>
> wrote:
> >>  1) Are there other Maven test related switches? Specifically, is there
> a
> >>  Maven switch/target/profile to just run the unit tests without a
> build?
> >>
> >>  2) Is there a to run these JUnit test cases from within an Eclipse
> >>  project? Perhaps some test perspective or some menu item that
> >>  understands JUnit test cases.
> >
> > Within Eclipse you can highlight a JUnit test class and "Run as => JUnit
> Test"
> >
>
> Doh! Thanks Kevin. I found that shortly after posting. I also see you
> can run in the debugger via "Debug as => JUnit Test".
>
> Still looking for Maven pointers.
> --
> Thanks, Dan Becker
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>

Re: Tuscany JUnit tests

Posted by Dan Becker <da...@gmail.com>.
Kevin Williams wrote:
> On Wed, Mar 26, 2008 at 8:49 AM, Dan Becker <da...@gmail.com> wrote:
>>  1) Are there other Maven test related switches? Specifically, is there a
>>  Maven switch/target/profile to just run the unit tests without a build?
>>
>>  2) Is there a to run these JUnit test cases from within an Eclipse
>>  project? Perhaps some test perspective or some menu item that
>>  understands JUnit test cases.
> 
> Within Eclipse you can highlight a JUnit test class and "Run as => JUnit Test"
> 

Doh! Thanks Kevin. I found that shortly after posting. I also see you 
can run in the debugger via "Debug as => JUnit Test".

Still looking for Maven pointers.
-- 
Thanks, Dan Becker

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


Re: Tuscany JUnit tests

Posted by Kevin Williams <kj...@gmail.com>.
Comment inline ...

On Wed, Mar 26, 2008 at 8:49 AM, Dan Becker <da...@gmail.com> wrote:
> I notice most every Tuscany component has JUnit tests associated with
>  it. I also notice that these tests are run as part of a normal Maven
>  build (which you can turn on and off via -Dmaven.test.skip=true).
>
>  1) Are there other Maven test related switches? Specifically, is there a
>  Maven switch/target/profile to just run the unit tests without a build?
>
>  2) Is there a to run these JUnit test cases from within an Eclipse
>  project? Perhaps some test perspective or some menu item that
>  understands JUnit test cases.

Within Eclipse you can highlight a JUnit test class and "Run as => JUnit Test"

>
>  I saw the Tuscany Wiki had some good articles on testing (e.g.
>  http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Automation+of+itests+in+web+applications),
>  but I would like to grow my knowledge here.
>  --
>  Thanks, Dan Becker
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>  For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>

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