Skip to content

Test interface not on the classpath when using scalaHome #2748

@szeiger

Description

@szeiger

When using a locally built Scala distribution via scalaHome, any attempt to run a test fails with java.lang.ClassNotFoundException: org.scalatools.testing.Framework. I was able to confirm this with sbt 0.13.7 and 0.13.12, using the build/pack output from ant in Scala 2.12.0-M5 and from sbt in Scala 2.12.0-RC1. Tests can be run when Scala is resolved in the usual way from a Maven repository.

This was originally filed as scala/scala-dev#223 but seems to be an sbt problem rather than one with the new build. The assumptions from that ticket appear to be wrong though. The problem is not caused by building the Scala distribution with sbt or the lack of a partest.properties file. Even when building M5 with ant and manually launching partest to generate partest.properties I can still reproduce the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions