Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-693

Selection of Scalatest jar is inadequate and doesn't work with Scala 2.10

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.4.14
    • 1.5
    • Test frameworks
    • None

    Description

      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.

      Attachments

        Activity

          People

            toulmean Antoine Toulme
            rickb Rick Beton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: