-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extend scripted test for snapshot promote filtering
- Loading branch information
Showing
2 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
modules/plugin/src/sbt-test/sbt-snapshot4s/promote-filter/src/test/scala/OtherTest.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,29 @@ | ||
package simple | ||
|
||
import weaver.* | ||
import snapshot4s.weaver.SnapshotExpectations | ||
import snapshot4s.generated.snapshotConfig | ||
|
||
object OtherTest extends SimpleIOSuite with SnapshotExpectations { | ||
|
||
test("inline") { | ||
assertInlineSnapshot(123, 456) | ||
} | ||
|
||
test("new inline snapshot") { | ||
assertInlineSnapshot(1, ???) | ||
} | ||
|
||
test("file that doesn't exist") { | ||
assertFileSnapshot("other-contents", "nonexistent-file") | ||
} | ||
|
||
test("existing file") { | ||
assertFileSnapshot("contents", "existing-file") | ||
} | ||
|
||
test("file in nested directory") { | ||
assertFileSnapshot("contents", "nested-directory/nested-file") | ||
} | ||
|
||
} |
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