buildr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexis Midon <alexismi...@gmail.com>
Subject upgrade to scala 2.9.0 [was Fwd: scala questions]
Date Fri, 27 May 2011 08:01:34 GMT
I added some doc about scala 2.9.
I also wrote some specs, however I'm missing something and I can't change
the scala version to 2.9, so the specs are failing. I need your rspec-foo
here.

One point you might want to discuss is the default scala version in buildr.
Could it be upgraded to 2.9.0 or should we stick to 2.8.1 for now?

https://github.com/alexism/buildr/commit/30ed368ecf16d14c83117259359aaf9beb0499e7

---------- Forwarded message ----------
From: Alex Boisvert <alex.boisvert@gmail.com>
Date: Thu, May 26, 2011 at 4:03 PM
Subject: Re: scala questions
To: users@buildr.apache.org


On Thu, May 26, 2011 at 3:51 PM, Alexis Midon <alexismidon@gmail.com> wrote:

> I've been using scala in some projects and wanted to use the latest 2.9
> version.
> I hit some incompatibilities with version 2.8.1 around the compiler
options
> and the scalatest version. A patch is already drafted at
> https://github.com/alexism/buildr/commits/scala_29
> I wanted to share it with you. I'm sure I missed other compatibility
issues
> that you guys will catch.
>

Cool, I have a similar patch locally so I'll merge both of our changes
together and commit.


> Also, I noticed that, in a same module, you can have sources in src/java
> and
> in src/scala. They will be compiled and packaged in the same jar. Pretty
> cool.
> However it does not seem possible to do similar things with the unit
tests.
> Only the scalatest are executed, my java unit tests are ignored.
> Am I missing something here? If it's actually not supported, what is your
> strategy to test both java and scala sources?
>

You can use JUnit to test both since ScalaTest can be wrapped as JUnit
tests.

http://www.scalatest.org/scaladoc-1.0/org/scalatest/junit/JUnitRunner.html
<http://www.scalatest.org/scaladoc-1.0/org/scalatest/junit/JUnitRunner.html>


> Can scalatest run both?
>

I don't believe so.

alex

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message