Rick Beton created BUILDR-693:
---------------------------------

             Summary: Selection of Scalatest jar is inadequate and doesn't work 
with Scala 2.10
                 Key: BUILDR-693
                 URL: https://issues.apache.org/jira/browse/BUILDR-693
             Project: Buildr
          Issue Type: Bug
          Components: Test frameworks
    Affects Versions: 1.4.14
            Reporter: Rick Beton


tests.rb includes code that determines its behaviour according to the Scala 
version in use. The Scalatest jar dependency is hard-wired to an old version.

So suppose I want to use scalatest_2.10-1.9.2.jar, I can't.

A simple work-around in tests.rb around line 92 would be to expand it to

    VERSION = case
      when Buildr::Scala.version?(2.7)
        '1.3'
      when Buildr::Scala.version?(2.9)
        '1.8'
      else
        '1.9.2'
    end

This would help me right now, but simply postpones the problem.

A better solution might be to detect scalatest.jar on the dependencies for test 
and not use a default unless scalatest was missing. 



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to