This page is no longer maintained — Please continue to the home page at www.scala-lang.org

testng eclipse plugin integration

2 replies
CadErik
Joined: 2008-12-19,
User offline. Last seen 3 years 43 weeks ago.

In Eclipse, the "Run as TestNG Test" doesn't show for scala classes. I
don't mind contributing on the testng plugin but would anyone know how
this would work on the scala side? Is the outline in a scala project
specific to scala or is it the same as Java?

Erik.

Arco Oost
Joined: 2009-01-08,
User offline. Last seen 42 years 45 weeks ago.
Re: testng eclipse plugin integration

Erik,

I don't know if this is what you're looking for, but in my projects I
simply add a testng.xml file. If you right-click on the testng.xml file
there is an option to run the tests:

Regards,
Arco

Putrycz, Erik wrote:
> In Eclipse, the "Run as TestNG Test" doesn't show for scala classes. I
> don't mind contributing on the testng plugin but would anyone know how
> this would work on the scala side? Is the outline in a scala project
> specific to scala or is it the same as Java?
>
>
> Erik.
>
>
>

CadErik
Joined: 2008-12-19,
User offline. Last seen 3 years 43 weeks ago.
RE: testng eclipse plugin integration

Thanks Arco,

No, I wanted the context menu on class and method to show the "run as
testng test". I figured out the cause, it is in the testng plugin
itself, for some compatibility reasons, it is reparsing the source and
assumes it is Java.
This prevents the plugin to show the context menu correctly in Scala
classes. I'm trying to work out a solution with the testng developers.

Erik.

> -----Original Message-----
> From: Arco Oost [mailto:arco [dot] oost [at] gmail [dot] com]
> Sent: January-07-09 6:10 PM
> To: Putrycz, Erik
> Cc: scala-tools [at] listes [dot] epfl [dot] ch
> Subject: Re: [scala-tools] testng eclipse plugin integration
>
> Erik,
>
> I don't know if this is what you're looking for, but in my projects I
> simply add a testng.xml file. If you right-click on the testng.xml
file
> there is an option to run the tests:
>
>
>
>
>
>
>
>
>
>
>
> Regards,
> Arco
>
> Putrycz, Erik wrote:
> > In Eclipse, the "Run as TestNG Test" doesn't show for scala classes.
I
> > don't mind contributing on the testng plugin but would anyone know
how
> > this would work on the scala side? Is the outline in a scala project
> > specific to scala or is it the same as Java?
> >
> >
> > Erik.
> >
> >
> >

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland