You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _overviews/scala3-book/tools-sbt.md
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -338,10 +338,11 @@ See Coursier’s [launch page](https://get-coursier.io/docs/cli-launch) for more
338
338
339
339
## Using sbt with ScalaTest
340
340
341
-
[ScalaTest](https://www.scalatest.org) is one of the main testing libraries for Scala projects, and in this section you’ll see how to create a Scala/sbt project that uses ScalaTest.
341
+
[ScalaTest](https://www.scalatest.org) is one of the main testing libraries for Scala projects.
342
+
In this section you’ll see the steps necessary to create a Scala/sbt project that uses ScalaTest.
342
343
343
344
344
-
### Creating the project directory structure
345
+
### 1) Create the project directory structure
345
346
346
347
As with the previous lesson, create an sbt project directory structure for a project named _HelloScalaTest_ with the following commands:
347
348
@@ -353,7 +354,7 @@ $ mkdir project
353
354
```
354
355
355
356
356
-
### Creating the build.properties and build.sbt files
357
+
### 2) Create the build.properties and build.sbt files
357
358
358
359
Next, create a _build.properties_ file in the _project/_ subdirectory of your project
359
360
with this line:
@@ -380,7 +381,7 @@ The `libraryDependencies` lines tell sbt to include the dependencies (JAR files)
380
381
> 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](https://www.scalatest.org/install) page.
381
382
382
383
383
-
### Create a Scala source code file
384
+
### 3) Create a Scala source code file
384
385
385
386
Next, create a Scala program that you can use to demonstrate ScalaTest.
386
387
First, create a directory under _src/main/scala_ named _math_:
@@ -420,7 +421,7 @@ With that compiled, let’s create a ScalaTest file to test the `double` method.
420
421
{% endcomment %}
421
422
422
423
423
-
### Your first ScalaTest tests
424
+
### 4) Create your first ScalaTest tests
424
425
425
426
ScalaTest is very flexible, and offers several different ways to write tests.
426
427
A simple way to get started is to write tests using the ScalaTest `AnyFunSuite`.
0 commit comments