Skip to content

update scalatest version #3141

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 3 commits into from
Jan 8, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Scala には複数のライブラリとテスト方法がありますが、こ
1. ScalaTest への依存を追加します。
1. `build.sbt` ファイルに ScalaTest への依存を追加します。
```
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.8" % Test
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % Test
```
1. `build.sbt was changed` という通知が出たら、**auto-import** を選択します。
1. これらの2つのアクションにより、`sbt` が ScalaTest ライブラリをダウンロードします。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This assumes you know [how to build a project in IntelliJ](building-a-scala-proj
1. Add the ScalaTest dependency:
1. Add the ScalaTest dependency to your `build.sbt` file:
```
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.11" % Test
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % Test
```
1. If you get a notification "build.sbt was changed", select **auto-import**.
1. These two actions will cause `sbt` to download the ScalaTest library.
Expand Down
4 changes: 2 additions & 2 deletions _overviews/scala-book/sbt-scalatest-tdd.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ version := "1.0"
scalaVersion := "{{site.scala-version}}"

libraryDependencies +=
"org.scalatest" %% "scalatest" % "3.2.11" % Test
"org.scalatest" %% "scalatest" % "3.2.19" % Test

```

The first three lines of this file are essentially the same as the first example, and the `libraryDependencies` lines tell sbt to include the dependencies (jar files) that are needed to run ScalaTest:

```scala
libraryDependencies +=
"org.scalatest" %% "scalatest" % "3.2.11" % Test
"org.scalatest" %% "scalatest" % "3.2.19" % Test
```

>The ScalaTest documentation has always been good, and you can always find the up to date information on what those lines should look like on the [Installing ScalaTest](http://www.scalatest.org/install) page.
Expand Down
2 changes: 1 addition & 1 deletion _overviews/scala3-book/tools-sbt.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ version := "0.1"
scalaVersion := "{{site.scala-3-version}}"

libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.9" % Test
"org.scalatest" %% "scalatest" % "3.2.19" % Test
)
```

Expand Down
4 changes: 2 additions & 2 deletions _overviews/scala3-migration/tutorial-prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ The dependency to `"scalatest" %% "scalatest" % "3.0.9"` must be upgraded becaus
- The `scalatest` API is based on some macro definitions.
- The `3.0.9` version is not published for Scala 3.

We can upgrade it to version `3.2.7`, which is cross-published in Scala 2.13 and Scala 3.
We can upgrade it to version `3.2.19`, which is cross-published in Scala 2.13 and Scala 3.

```scala
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.7"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19"
```

## Compiler plugins
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ previous-page: /ru/building-a-scala-project-with-intellij-and-sbt
1. Добавьте зависимость ScalaTest:
1. Добавьте зависимость ScalaTest в свой файл `build.sbt`:
```
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.11" % Test
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % Test
```
1. Если вы получили уведомление "build.sbt was changed", выберите **auto-import**.
1. Эти два действия заставят `sbt` подгрузить библиотеки ScalaTest.
Expand Down
2 changes: 1 addition & 1 deletion _ru/scala3/book/tools-sbt.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ version := "0.1"
scalaVersion := "{{site.scala-3-version}}"

libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.9" % Test
"org.scalatest" %% "scalatest" % "3.2.19" % Test
)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ previous-page: /uk/building-a-scala-project-with-intellij-and-sbt
1. Додайте залежність ScalaTest:
1. Додайте залежність ScalaTest у файл `build.sbt` вашого проєкту:
```
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.11" % Test
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % Test
```
1. Ви побачите сповіщення "build.sbt was changed", оберіть **auto-import**.
1. Ці дві дії призведуть до того, що `sbt` завантажить бібліотеку ScalaTest.
Expand Down
2 changes: 1 addition & 1 deletion _zh-cn/overviews/scala3-book/tools-sbt.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ version := "0.1"
scalaVersion := "{{site.scala-3-version}}"

libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.9" % Test
"org.scalatest" %% "scalatest" % "3.2.19" % Test
)
```

Expand Down