Running PresentationCompilerTest inside Scala IDE

19 views
Skip to first unread message

Mads Hartmann Jensen

unread,
Dec 11, 2012, 1:29:49 PM12/11/12
to scala-...@googlegroups.com
Hi guys, 

Is it possible to run PresentationCompilerTest inside of Eclipse and have the tests pass? When I try to run them they all fail. 

running `mvn -P scala-2.10.x clean install` inside of `org.scala-ide.sdt.core.tests` passes (most of the time) for me. 

Cheers,
Mads

Mads Hartmann Jensen

unread,
Dec 11, 2012, 5:31:25 PM12/11/12
to scala-...@googlegroups.com
If it isn't possible inside of Eclipse, is it then possible just to run the one test using maven? It takes 5 minutes to run `mvn -P scala-2.10.x clean install` inside of `org.scala-ide.sdt.core.tests` which is a bit much ;)

I tried `mvn -P scala-2.10.x -Dtest= PresentationCompilerTest test` but it didn't really do anything as far as I can see. 

Cheers,
Mads

Rafał Krzewski

unread,
Dec 11, 2012, 6:44:12 PM12/11/12
to scala-...@googlegroups.com
Hi Mads,

you should invoke tycho-surefire:test instead. There's a space after -Dtest= in your message above and that wouldn't work because maven would look for goal named PresentationCompilerTest and fail.

HTH
Rafał

Mads Hartmann Jensen

unread,
Dec 12, 2012, 1:41:41 AM12/12/12
to scala-...@googlegroups.com
Awesome, thanks!

Now it only takes 1.5 minutes to see if my code works ;) 

Just in case someone searches for this in the future this is what I used to run a single test: 

mvn -P scala-2.10.x -Dtest=PresentationCompilerTest tycho-surefire:test

Cheers,
Mads

Luc Bourlier

unread,
Dec 12, 2012, 4:15:40 AM12/12/12
to scala-...@googlegroups.com
Hey Mads,

To run the tests inside Eclipse, you need to use the Equinox Weaving Launcher. The configuration is described in the last section of this page:

HTH,
Luc

Mads Hartmann Jensen

unread,
Dec 12, 2012, 5:51:58 PM12/12/12
to scala-...@googlegroups.com
Ah cool thanks. Don't know how I missed that on the site first time I checked. Works like a charm. 

Cheers,
Mads
Reply all
Reply to author
Forward
0 new messages