-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from scoverage/scoverage2
Scoverage2
- Loading branch information
Showing
23 changed files
with
291 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
distributionSha256Sum=e111cb9948407e26351227dabce49822fb88c37ee72f1d1582a69c68af2e702f | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
6 changes: 6 additions & 0 deletions
6
src/crossScalaVersionTest/java/org/scoverage/Scala32Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package org.scoverage; | ||
|
||
public class Scala32Test extends ScalaVersionTest { | ||
|
||
public Scala32Test() { super("3_2"); } | ||
} |
2 changes: 1 addition & 1 deletion
2
...ossScalaVersionTest/resources/projects/scala-multi-module-cross-version/2_12/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
dependencies { | ||
implementation group: 'org.scala-lang', name: 'scala-library', version: "2.12.8" | ||
implementation group: 'org.scala-lang', name: 'scala-library', version: "2.12.17" | ||
testImplementation group: 'org.scalatest', name: "scalatest_2.12", version: scalatestVersion | ||
} |
2 changes: 1 addition & 1 deletion
2
...ossScalaVersionTest/resources/projects/scala-multi-module-cross-version/2_13/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
dependencies { | ||
implementation group: 'org.scala-lang', name: 'scala-library', version: "2.13.1" | ||
implementation group: 'org.scala-lang', name: 'scala-library', version: "2.13.10" | ||
testImplementation group: 'org.scalatest', name: "scalatest_2.13", version: scalatestVersion | ||
} |
5 changes: 5 additions & 0 deletions
5
...rossScalaVersionTest/resources/projects/scala-multi-module-cross-version/3_2/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dependencies { | ||
implementation 'org.scala-lang:scala3-library_3:3.2.0' | ||
testImplementation 'org.scalatest:scalatest_3:3.2.14' | ||
testImplementation "org.scalatestplus:junit-4-13_3:3.2.14.0" | ||
} |
14 changes: 14 additions & 0 deletions
14
...ces/projects/scala-multi-module-cross-version/3_2/src/main/scala/org/hello/World3_2.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.hello | ||
|
||
class World3_2 { | ||
|
||
// Scala 3 enum to force Scala 3 (Dotty) compiler | ||
enum Num(val value: String): | ||
case Three extends Num("3") | ||
case Two extends Num("2") | ||
|
||
def foo(): String = { | ||
val s = Num.Three.value + Num.Two.value | ||
s | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...rojects/scala-multi-module-cross-version/3_2/src/test/scala/org/hello/World3_2Suite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.hello | ||
|
||
import org.junit.runner.RunWith | ||
import org.scalatest.funsuite.AnyFunSuite | ||
import org.scalatestplus.junit.JUnitRunner | ||
|
||
@RunWith(classOf[JUnitRunner]) | ||
class World3_2Suite extends AnyFunSuite { | ||
|
||
test("foo") { | ||
new World3_2().foo() | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...crossScalaVersionTest/resources/projects/scala-multi-module-cross-version/settings.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include '2_12', '2_13' | ||
include '2_12', '2_13', '3_2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.