File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,20 @@ and each markdown document into a test suite.
55
66## Usage
77
8+ Create ` test-snippets.scala ` (use at least Java 11):
9+
810``` scala
911//> using scala 3.3.3
12+ //> using dep temurin:1.11.0.23
1013//> using dep " com.kubuszok::scala-cli-md-spec:0.0.1"
1114import com .kubuszok .scalaclimdspec
1215@ main def testSnippets (args : String * ): Unit = scalaclimdspec.testSnippets(args.toArray) { cfg =>
1316 new scalaclimdspec.Runner .Default (cfg) // or provide your own :)
1417}
1518```
1619
20+ then run it with Scala CLI:
21+
1722``` bash
1823# run all tests
1924scala-cli run test-snippets.scala -- " $PWD /docs"
Original file line number Diff line number Diff line change 11//> using scala 3.3.3
2+ //> using jvm temurin:1.11.0.23
23//> using dep " com.monovore::decline:2.4.1"
34
45//> using publish .name " scala-cli-md-spec"
You can’t perform that action at this time.
0 commit comments