ScalaTest plugin and the Scala IDE ecosystem

326 views
Skip to first unread message

Luc Bourlier

unread,
Jul 26, 2012, 2:47:40 AM7/26/12
to scala-...@googlegroups.com, scala-i...@googlegroups.com
I am happy to announce the availability of the ScalaTest plugin for Scala IDE, and the start of the Scala IDE ecosystem update sites.

Check the blog post for more info: http://scala-ide.org/blog/scalatest-ecosystem.html

Have a nice testing day,
Luc

--
Luc Bourlier - Scala IDE contributor
TypeSafe - The software stack for applications that scale

Rafał Krzewski

unread,
Jul 26, 2012, 6:47:50 AM7/26/12
to scala-...@googlegroups.com, scala-i...@googlegroups.com
ScalaTest plugin requires JDT [3.6.0,3.7.10) :( 
Are there any plans to include support for Juno?

regards,
Rafał

Luc Bourlier

unread,
Jul 26, 2012, 10:37:44 AM7/26/12
to scala-...@googlegroups.com, scala-i...@googlegroups.com
Plans? sure. I don't think it has been tested at all on Juno. So first it should be check if they are any compatibility problem, and then see what to do about it.

You can give it a spin yourself if you want. Just set repo.eclipse, repo.ajdt and repo.scala-ide to the right update site URLs in https://github.com/scalatest/scalatest-eclipse-plugin/blob/master/pom.xml (you should be able to get the right values from https://github.com/scala-ide/scala-ide/blob/platform/juno/pom.xml) and run the build.

++,
Luc

Rafał Krzewski

unread,
Jul 26, 2012, 3:29:38 PM7/26/12
to scala-...@googlegroups.com, scala-i...@googlegroups.com
I've managed to get the dependencies straight (I think) but I got a compilation error:

[ERROR] /home/rafal/workspaces/tools/scala/scalatest-eclipse-plugin/org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestLaunchShortcut.scala:252: error: method classpath in trait ClasspathManagement cannot be accessed in scala.tools.eclipse.ScalaProject
[ERROR]       val loaderUrls = scProject.classpath.map { cp => new File(cp.toString).toURI.toURL }

Does it look like something that might have changed between master and platform/juno branches?

Cheers,
Rafał

Luc Bourlier

unread,
Jul 26, 2012, 4:58:52 PM7/26/12
to scala-...@googlegroups.com
Yes, it is missing the changes from this pull request https://github.com/scala-ide/scala-ide/pull/150
I'll check if I can update the Juno branch, but not promises.

Luc

Rafał Krzewski

unread,
Jul 27, 2012, 7:38:16 AM7/27/12
to scala-...@googlegroups.com
I was able to get around this problem by using ScalaProject.scalaClasspath.fullClasspath instead. It causes the compilation to fail for non-Juno profiles, so the proper fix requires merging the pull request you've mentioned. It was good enough for my current purpose though.
After that change I was able to build the plugin (all integration tests passed OK). I've installed from the generated local update site it with a minor issue - I had to disable "Contact all update sites ..." checkbox in the Install new software dialog, because otherwise I got a dependency resolution error claiming that org.scala-ide.scalatest 0.9.1 requires JDT [3.6.0,3.7.10) even though I've set it to [3.6.0,4.2.10). Apparently the P2 got confused because I had the same version of the plugin available in my local site and remote scala-ide ecosystem update site.
Now the good news: I was able to run a few test I have in my toy projects (I'm just learning Scala right now) using ScalaTest plugin and it worked smoothly. Run As > ScalaTest showed up in the right places, and Package / Suite / File / Test modes worked as expected.

Would you like a pull request that expands JDT depedency range and adds scala-ide-juno-master-scala-2.9 profile?

cheers,
Rafał

Chee Seng Chua

unread,
Oct 31, 2012, 12:10:31 AM10/31/12
to scala-...@googlegroups.com, scala-i...@googlegroups.com
Hi borice, 

could be a little late reply, but may be you can try out update sites listed here:-


fyi, i am working currently working with luc to fix broken one in the new update sites structure.

chee seng


On Monday, 15 October 2012 01:43:59 UTC+8, borice wrote:
I know this has been asked before --- but is there a Juno-compatible version anywhere that can be installed by people that don't know how to compile everything from scratch for Juno?  

Thank you!
Reply all
Reply to author
Forward
0 new messages