【文件属性】:
文件名称:munit-snapshot:MUnit的快照测试
文件大小:7KB
文件格式:ZIP
更新时间:2021-02-13 16:27:55
Scala
残酷的快照
MUnit的快照测试。 该项目是的基本实现。
入门
添加munit-snapshot依赖项后:
libraryDependencies + = " com.github.lolgab " %% " munit-snapshot " % " 0.0.4 " % Test
您可以在名为ExampleSnapshotTest.scala的文件中创建基本测试:
package example
import munit . snapshot . _
import upickle . default . _
class ExampleSnapshotTest extends SnapshotSuite {
snapshotTest( " one plus one " ) {
1 + 1
}
}
第一次运行测试将生成一个名为ExampleSnapshotTest.js
【文件预览】:
munit-snapshot-main
----.gitignore(4B)
----build.sc(2KB)
----.mill-version(16B)
----.scalafix.conf(177B)
----mill(2KB)
----README.md(1KB)
----.scalafmt.conf(18B)
----munit-snapshot()
--------src()
--------test()