suite: test suites, custom matchers, and more for the JVM and JSbase: JVM-specific extensions tosuitethat adds filesystem-utilities (e.g. creating temporary files/directories)
libraryDependencies += "org.hammerlab.test" %%% "suite" % "1.1.0"or
libraryDependencies += "org.hammerlab.test" %% "base" % "1.1.0"Suite: wrapper for ScalaTestFunSuite with Matchers.TmpFiles: create (and automatically garbage-collect) temporary files and directories.matchers: various ScalaTestMatcherimplementations:-
files: file- and directory-equalityMatchers:-
FileMatcher: assert that two files' contents are equal, where the "expected" path is interpreted as being a path to a test-resource, and the "actual" path is absolute (e.g. a temporary file that was written viaTmpFilesabove):import org.hammerlab.test.matchers.files.FileMatcher.fileMatch actualPath should fileMatch(expectedPath)
-
[
DirMatcher](https://github.com/hammerlab/test- utils/blob/master/src/main/scala/org/hammerlab/test/matchers/files/DirMatcher.scala): similar to the above, but verifying two directories' contents, highlighting missing, extra, and differing files.import org.hammerlab.test.matchers.files.DirMatcher.dirMatch actualPath should dirMatch(expectedPath)
-
-
seqs: collection-relatedMatchers:SeqMatcher/SetMatcher: compare twoSeqs, highlighting extra/missing elements.PairSeqMatcher/MapMatcher: compare two collections of key-value pairs, highlighting missing/extra elements as well as keys whose values differ.
-
LazyAssert: anassertwrapper whose failure-message is evaluated lazily; useful in case it is expensive to compute (e.g. materializes/indexes data to provide context for debugging).version.Util: test the Scala version, at runtime.