From torbjorn.vatn at bekk.no Wed Feb 27 13:33:10 2008 From: torbjorn.vatn at bekk.no (=?ISO-8859-1?Q?Torbj=F8rn_Vatn?=) Date: Wed, 27 Feb 2008 12:33:10 +0100 Subject: [Jdave-user] Trouble using @RunWith(JDaveRunner.class) in Eclipse Message-ID: <47C54A76.4040609@bekk.no> Hi! In the scala module stack example the @RunWith annotation is used like this: ... @RunWith(classOf[JDaveRunner]) class StackSpec extends Specification[Stack[Int]] { ... Has anyone been able to run such a test using the "run as" function in Eclipse? -- mvh B | torbj?rn vatn, consultant E | +47 982 19 397, torbjorn.vatn at bekk.no K | bekk consulting as, pb. 134 sentrum, 0102 oslo, norway K | www.bekk.no Please consider the environment before printing this email *** Confidentiality Notice *** The content of this e-mail is intended only for the confidential use of the person(s) to whom it is addressed. If the reader of this message is not such a person, you are hereby notified that you have received this communication in error and that reading it, copying it, or in any way disseminating its content to any other person, is strictly prohibited. If you have received this message in error, please notify Bekk Consulting AS immediately and delete the material from any computer. From joni.freeman at ri.fi Wed Feb 27 14:16:23 2008 From: joni.freeman at ri.fi (Joni Freeman) Date: Wed, 27 Feb 2008 14:16:23 +0200 Subject: [Jdave-user] Trouble using @RunWith(JDaveRunner.class) in Eclipse In-Reply-To: <47C54A76.4040609@bekk.no> References: <47C54A76.4040609@bekk.no> Message-ID: <1204114583.6438.4.camel@nipert> Hi! Unfortunately it is not possible to do that with current tooling. Eclipse's JUnit plugin does not recognize classes compiled with scalac as runnable tests. The only way to run jdave scala specs directly from IDE (as far as I know) is to create a parallel Java project and adding a jdave group runner there. Example: http://svn.laughingpanda.org/svn/jdave/trunk/jdave-scala-suites/src/test/suites/Suite.java Of course, this far far from an optimal solution... Joni On Wed, 2008-02-27 at 12:33 +0100, Torbj?rn Vatn wrote: > Hi! > > In the scala module stack example the @RunWith annotation is used like this: > > ... > @RunWith(classOf[JDaveRunner]) > class StackSpec extends Specification[Stack[Int]] { > ... > > Has anyone been able to run such a test using the "run as" function in > Eclipse? >