Skip to content

Commit

Permalink
Merge pull request #312 from tgodzik/update-3.0.0-RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro authored Feb 16, 2021
2 parents 3aad999 + cfc27b9 commit 63b8286
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 65 deletions.
4 changes: 2 additions & 2 deletions bin/test-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ coursier resolve \
org.scalameta:munit_2.11:$version \
org.scalameta:munit_2.12:$version \
org.scalameta:munit_2.13:$version \
org.scalameta:munit_3.0.0-M2:$version \
org.scalameta:munit_3.0.0-M3:$version \
org.scalameta:munit_3.0.0-RC1:$version \
org.scalameta:munit_0.27:$version \
org.scalameta:munit_native0.4.0_2.11:$version \
org.scalameta:munit_native0.4.0_2.12:$version \
Expand All @@ -22,8 +22,8 @@ coursier resolve \
org.scalameta:munit-scalacheck_2.12:$version \
org.scalameta:munit-scalacheck_2.13:$version \
org.scalameta:munit-scalacheck_0.27:$version \
org.scalameta:munit-scalacheck_3.0.0-M2:$version \
org.scalameta:munit-scalacheck_3.0.0-M3:$version \
org.scalameta:munit-scalacheck_3.0.0-RC1:$version \
org.scalameta:munit-scalacheck_native0.4.0_2.11:$version \
org.scalameta:munit-scalacheck_native0.4.0_2.12:$version \
org.scalameta:munit-scalacheck_native0.4.0_2.13:$version \
Expand Down
12 changes: 9 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def previousVersion = "0.7.0"
def scala213 = "2.13.4"
def scala212 = "2.12.13"
def scala211 = "2.11.12"
def scala3Stable = "3.0.0-M3"
def scala3Previous = List("3.0.0-M2")
def scala3Stable = "3.0.0-RC1"
def scala3Previous = List("3.0.0-M3")
def junitVersion = "4.13.2"
def gcp = "com.google.cloud" % "google-cloud-storage" % "1.113.9"
inThisBuild(
Expand Down Expand Up @@ -250,7 +250,13 @@ lazy val munitScalacheck = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.settings(
moduleName := "munit-scalacheck",
sharedSettings,
libraryDependencies += "org.scalacheck" %%% "scalacheck" % "1.15.2"
libraryDependencies += {
val partialVersion = CrossVersion.partialVersion(scalaVersion.value)
if (isNotScala211(partialVersion))
"org.scalacheck" %%% "scalacheck" % "1.15.3"
else
"org.scalacheck" %%% "scalacheck" % "1.15.2"
}
)
.jvmSettings(
sharedJVMSettings
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ object MacroCompat {

def clueImpl[T: Type](value: Expr[T])(using Quotes): Expr[Clue[T]] = {
import quotes.reflect._
val source = Term.of(value).pos.sourceCode.getOrElse("")
val source = value.asTerm.pos.sourceCode.getOrElse("")
val valueType = TypeTree.of[T].show(using Printer.TreeShortCode)
'{ new Clue(${Expr(source)}, $value, ${Expr(valueType)}) }
}
Expand Down
1 change: 0 additions & 1 deletion tests/shared/src/main/scala/munit/Tags.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ package munit

object OnlyJVM extends Tag("OnlyJVm") {}
object NoDotty extends Tag("NoDotty") {}
object OnlyFromM3 extends Tag("OnlyFromM3") {}
object Only213 extends Tag("Only213") {}
2 changes: 1 addition & 1 deletion tests/shared/src/test/scala/munit/AssertionsSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AssertionsSuite extends BaseSuite {
cond: => Boolean,
expected: String
)(implicit loc: Location): Unit =
test(name.tag(OnlyFromM3)) {
test(name) {
val (_, clues) = munitCaptureClues(cond)
assertNoDiff(Printers.print(clues), expected)
}
Expand Down
4 changes: 0 additions & 4 deletions tests/shared/src/test/scala/munit/BaseSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ class BaseSuite extends FunSuite {
BuildInfo.scalaVersion.startsWith("2.13") || isDotty
if (test.tags(NoDotty) && isDotty) {
test.tag(Ignore)
} else if (
test.tags(OnlyFromM3) && "3.0.0-M2" == BuildInfo.scalaVersion
) {
test.tag(Ignore)
} else if (test.tags(Only213) && !is213) {
test.tag(Ignore)
} else if (test.tags(OnlyJVM) && !PlatformCompat.isJVM) {
Expand Down
13 changes: 12 additions & 1 deletion tests/shared/src/test/scala/munit/TypeCheckSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TypeCheckSuite extends FunSuite {
|msg.foobar
| ^
|""".stripMargin,
"3" ->
"3.0.0-M3" ->
"""|error:
|value foobar is not a member of String, but could be made available as an extension method.
|
Expand All @@ -45,6 +45,17 @@ class TypeCheckSuite extends FunSuite {
|
|msg.foobar
| ^
|""".stripMargin,
"3.0.0-RC1" ->
"""|error:
|value foobar is not a member of String, but could be made available as an extension method.
|
|The following import might make progress towards fixing the problem:
|
| import munit.Clue.generate
|
|msg.foobar
| ^
|""".stripMargin
)
)
Expand Down
3 changes: 3 additions & 0 deletions website/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"getting-started": {
"title": "Getting started"
},
"integrations/external-integrations": {
"title": "External Integrations"
},
"integrations/scalacheck": {
"title": "ScalaCheck"
},
Expand Down

0 comments on commit 63b8286

Please sign in to comment.