diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2016-06-14 16:54:08 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2016-06-27 15:04:21 +1000 |
commit | 22dac3118e97b2a4707d42ef1f47ac292a8ed385 (patch) | |
tree | 226d14a0946110230ba488227307330c928504b8 /test/files/run/t1829.scala | |
parent | 4e950838cbee187f3cee2ef197164792db74e56a (diff) | |
download | scala-22dac3118e97b2a4707d42ef1f47ac292a8ed385.tar.gz scala-22dac3118e97b2a4707d42ef1f47ac292a8ed385.tar.bz2 scala-22dac3118e97b2a4707d42ef1f47ac292a8ed385.zip |
Temporarily insource Scalacheck 1.11.6
This is a temporary measure until we release Scala
2.12.0. It means we are able to release milestones,
and RCs of Scala without needing a public release of
Scalacheck. While we've never had to wait very long
for these in the past (Thanks, Rickard!) we'd like
to spare the maintainer some work betwen now and 2.12.0.
After we release Scala 2.12.0, we'll revert to a binary
dependency on the standard Scalacheck.
I have replaced the scala-parser-combinator based
command line option parsing with a quick and dirty
version.
I've had to remove scalacheck as a SBT test framework
in our build. We don't use it directly as such (instead,
it is used indirectly through `partest --scalacheck`),
and it's test discovery (which we expect to return nothing)
fails after re-STARR-ing due to an unsolved problem with
SBT's testLoader including either STARR or sbt-launch.jar
on the classpath used to discover and spawn tests.
For the record, I tried the following to no avail:
```
// Two modifications are needed from the stock SBT configuration in order to exclude STARR
// from the classloader that performs test discovery.
// - We make `isManagedVersion` hold by providing an explicit Scala version, in order to go into the desired
// branch in `createTestLoader`
// - We remove STARR from the classloader of the scala instance
def fixTestLoader = testLoader := {
val s = scalaInstance.value
val scalaInstance1 =
new ScalaInstance(s.version, appConfiguration.value.provider.scalaProvider.loader(), s.libraryJar, s.compilerJar, s.extraJars, Some(s.actualVersion))
assert(scalaInstance1.isManagedVersion)
TestFramework.createTestLoader(Attributed.data(fullClasspath.value), scalaInstance1, IO.createUniqueDirectory(taskTemporaryDirectory.value))
}
```
f
Diffstat (limited to 'test/files/run/t1829.scala')
0 files changed, 0 insertions, 0 deletions