Skip to content

Change installing munit to reflect changes in scala-cli #2811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions _includes/_markdown/install-munit.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
{% tab 'Scala CLI' %}
You can require the entire toolkit in a single line:
```scala
//> using dep "org.scala-lang::toolkit-test:0.1.7"
//> using toolkit latest
```
MUnit, being a testing framework, is only available in test files: files in a `test` directory or ones that have the `.test.scala` extension. Refer to the [Scala CLI documentation](https://scala-cli.virtuslab.org/docs/commands/test/) to learn more about the test scope.

Alternatively, you can require just a specific version of MUnit:
```scala
//> using dep "org.scalameta::munit:1.0.0-M7"
//> using dep org.scalameta::munit:1.0.0-M7
```
{% endtab %}
{% tab 'sbt' %}
Expand Down
4 changes: 2 additions & 2 deletions _includes/_markdown/install-os-lib.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
{% tab 'Scala CLI' %}
You can require the entire toolkit in a single line:
```scala
//> using toolkit "latest"
//> using toolkit latest
```

Alternatively, you can require just a specific version of OS-Lib:
```scala
//> using dep "com.lihaoyi::os-lib:0.9.1"
//> using dep com.lihaoyi::os-lib:0.9.1
```
{% endtab %}
{% tab 'sbt' %}
Expand Down
4 changes: 2 additions & 2 deletions _includes/_markdown/install-sttp.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
{% tab 'Scala CLI' %}
You can require the entire toolkit in a single line:
```scala
//> using toolkit "latest"
//> using toolkit latest
```

Alternatively, you can require just a specific version of sttp:
```scala
//> using dep "com.softwaremill.sttp.client4::core:4.0.0-M1"
//> using dep com.softwaremill.sttp.client4::core:4.0.0-M1
```
{% endtab %}
{% tab 'sbt' %}
Expand Down
4 changes: 2 additions & 2 deletions _includes/_markdown/install-upickle.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
{% tab 'Scala CLI' %}
Using Scala CLI, you can require the entire toolkit in a single line:
```scala
//> using toolkit "latest"
//> using toolkit latest
```

Alternatively, you can require just a specific version of UPickle:
```scala
//> using dep "com.lihaoyi::upickle:3.1.0
//> using dep com.lihaoyi::upickle:3.1.0
```
{% endtab %}
{% tab 'sbt' %}
Expand Down