Skip to content

Commit 1bf0252

Browse files
Add "--version" command test
1 parent 84b03a6 commit 1bf0252

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/test/scala/eu/neverblink/jelly/cli/command/VersionSpec.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@ class VersionSpec extends AnyWordSpec, Matchers:
1212
out should include("Apache Jena")
1313
}
1414
}
15+
"--version command" should {
16+
"print version" in {
17+
val (out, err) = Version.runTestCommand(List("--version"))
18+
out should startWith("jelly-cli")
19+
out should include("Jelly-JVM")
20+
out should include("Apache Jena")
21+
}
22+
}

0 commit comments

Comments
 (0)