Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Munit integration, fix plugin, add scripted test (#5)
- Loading branch information
Showing
14 changed files
with
144 additions
and
14 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
21 changes: 19 additions & 2 deletions
21
...est/scala/MunitSnapshotsIntegration.scala → ...resources/MunitSnapshotsIntegration.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
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
13 changes: 13 additions & 0 deletions
13
modules/snapshots-sbt-plugin/src/sbt-test/basic/basic/build.sbt
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 @@ | ||
lazy val root = projectMatrix | ||
.in(file(".")) | ||
.jvmPlatform(Seq("3.3.1", "2.13.12")) | ||
.nativePlatform(Seq("3.3.1")) | ||
.jsPlatform(Seq("3.3.1")) | ||
.settings( | ||
snapshotsPackageName := "example", | ||
snapshotsIntegrations += SnapshotIntegration.MUnit, | ||
libraryDependencies += | ||
"org.scalameta" %%% "munit" % "1.0.0-M7" % Test, | ||
scalaJSLinkerConfig ~= (_.withModuleKind(ModuleKind.CommonJSModule)) | ||
) | ||
.enablePlugins(SnapshotsPlugin) |
6 changes: 6 additions & 0 deletions
6
modules/snapshots-sbt-plugin/src/sbt-test/basic/basic/project/plugins.sbt
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 @@ | ||
addSbtPlugin( | ||
"com.indoorvivants.snapshots" % "sbt-snapshots" % sys.props("plugin.version") | ||
) | ||
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.17") | ||
addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.9.1") | ||
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.14.0") |
Empty file.
Empty file.
Empty file.
8 changes: 8 additions & 0 deletions
8
modules/snapshots-sbt-plugin/src/sbt-test/basic/basic/src/test/scala/Tests.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,8 @@ | ||
import com.indoorvivants.snapshots.munit_integration._ | ||
import munit._ | ||
|
||
class MunitExampleTests extends FunSuite with MunitSnapshotsIntegration { | ||
test("hello") { | ||
assertSnapshot("my.snapshot", "hello - more stuff") | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
modules/snapshots-sbt-plugin/src/sbt-test/basic/basic/test
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,10 @@ | ||
> root/test | ||
-> root3/test | ||
-> rootNative3/test | ||
-> rootJS3/test | ||
> snapshotsAcceptAll | ||
$ exists src/test/resources/snapshots/root/my.snapshot | ||
> root3/test | ||
> rootNative3/test | ||
> rootJS3/test | ||
|
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