Skip to content

Commit b58fe0e

Browse files
committed
fix: Downcase sbt references
1 parent d10c312 commit b58fe0e

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

_overviews/scala-book/sbt-scalatest-bdd.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
type: section
33
layout: multipage-overview
4-
title: Writing BDD Style Tests with ScalaTest and SBT
5-
description: This lesson shows how to write ScalaTest unit tests with SBT in a behavior-driven development (TDD) style.
4+
title: Writing BDD Style Tests with ScalaTest and sbt
5+
description: This lesson shows how to write ScalaTest unit tests with sbt in a behavior-driven development (TDD) style.
66
partof: scala_book
77
overview-name: Scala Book
88
discourse: true
@@ -16,7 +16,7 @@ next-page: functional-programming
1616

1717
In the previous lesson you saw how to write Test-Driven Development (TDD) tests with [ScalaTest](http://www.scalatest.org). ScalaTest also supports a [Behavior-Driven Development (BDD)](https://dannorth.net/introducing-bdd/) style of testing, which we’ll demonstrate next.
1818

19-
>This lesson uses the same SBT project as the previous lesson, so you don’t have to go through the initial setup work again.
19+
>This lesson uses the same sbt project as the previous lesson, so you don’t have to go through the initial setup work again.
2020
2121

2222

@@ -111,9 +111,9 @@ If you want to have a little fun with this, change one or more of the tests so t
111111

112112
## Where to go from here
113113

114-
For more information about SBT and ScalaTest, see the following resources:
114+
For more information about sbt and ScalaTest, see the following resources:
115115

116-
- [The main SBT documentation](http://www.scala-sbt.org/documentation.html)
116+
- [The main sbt documentation](http://www.scala-sbt.org/documentation.html)
117117
- [The ScalaTest documentation](http://www.scalatest.org/user_guide)
118118

119119

_overviews/scala-book/sbt-scalatest-intro.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
type: chapter
33
layout: multipage-overview
4-
title: SBT and ScalaTest
5-
description: In this lesson we'll start to introduce SBT and ScalaTest, two tools commonly used on Scala projects.
4+
title: sbt and ScalaTest
5+
description: In this lesson we'll start to introduce sbt and ScalaTest, two tools commonly used on Scala projects.
66
partof: scala_book
77
overview-name: Scala Book
88
discourse: true
@@ -15,9 +15,9 @@ next-page: scala-build-tool-sbt
1515

1616
In the next few lessons you’ll see a couple of tools that are commonly used in Scala projects:
1717

18-
- The [SBT build tool](http://www.scala-sbt.org)
18+
- The [sbt build tool](http://www.scala-sbt.org)
1919
- [ScalaTest](http://www.scalatest.org), a code testing framework
2020

21-
We’ll start by showing how to use SBT, and then you’ll see how to use ScalaTest and SBT together to build and test your Scala projects.
21+
We’ll start by showing how to use sbt, and then you’ll see how to use ScalaTest and sbt together to build and test your Scala projects.
2222

2323

_overviews/scala-book/sbt-scalatest-tdd.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
type: section
33
layout: multipage-overview
4-
title: Using ScalaTest with SBT
5-
description: This lesson shows how to write ScalaTest unit tests with SBT in a test-driven development (TDD) style.
4+
title: Using ScalaTest with sbt
5+
description: This lesson shows how to write ScalaTest unit tests with sbt in a test-driven development (TDD) style.
66
partof: scala_book
77
overview-name: Scala Book
88
discourse: true
@@ -13,12 +13,12 @@ next-page: sbt-scalatest-bdd
1313
---
1414

1515

16-
[ScalaTest](http://www.scalatest.org) is one of the main testing libraries for Scala projects, and in this lesson you’ll see how to create a Scala project that uses ScalaTest. You’ll also be able to compile, test, and run the project with SBT.
16+
[ScalaTest](http://www.scalatest.org) is one of the main testing libraries for Scala projects, and in this lesson you’ll see how to create a Scala project that uses ScalaTest. You’ll also be able to compile, test, and run the project with sbt.
1717

1818

1919
## Creating the project directory structure
2020

21-
As with the previous lesson, create an SBT project directory structure for a project named *HelloScalaTest* with the following commands:
21+
As with the previous lesson, create an sbt project directory structure for a project named *HelloScalaTest* with the following commands:
2222

2323
```sh
2424
mkdir HelloScalaTest
@@ -43,7 +43,7 @@ libraryDependencies +=
4343
)
4444
```
4545

46-
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:
46+
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:
4747

4848
```scala
4949
libraryDependencies +=
@@ -156,7 +156,7 @@ Now you can run these tests with the `sbt test` command. Skipping the first few
156156

157157
## TDD tests
158158

159-
This example demonstrates a *Test-Driven Development* (TDD) style of testing with ScalaTest. In the next lesson you’ll see how to write *Behavior-Driven Development* (BDD) tests with ScalaTest and SBT.
159+
This example demonstrates a *Test-Driven Development* (TDD) style of testing with ScalaTest. In the next lesson you’ll see how to write *Behavior-Driven Development* (BDD) tests with ScalaTest and sbt.
160160

161161
>Keep the project you just created. You’ll use it again in the next lesson.
162162

_overviews/scala-book/scala-build-tool-sbt.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
type: section
33
layout: multipage-overview
4-
title: The Scala Build Tool (SBT)
5-
description: This page provides an introduction to the Scala Build Tool, SBT, including a simple 'Hello, world' project.
4+
title: The most used scala build tool (sbt)
5+
description: This page provides an introduction to the Scala Build Tool, sbt, including a simple 'Hello, world' project.
66
partof: scala_book
77
overview-name: Scala Book
88
discourse: true
@@ -14,17 +14,17 @@ next-page: sbt-scalatest-tdd
1414

1515

1616

17-
You can use several different tools to build your Scala projects, including Ant, Maven, Gradle, and more. But a tool named [SBT](http://www.scala-sbt.org) was the first build tool that was specifically created for Scala, and these days it’s supported by [Lightbend](https://www.lightbend.com), the company that was co-founded by Scala creator Martin Odersky that also maintains Akka, the Play web framework, and more.
17+
You can use several different tools to build your Scala projects, including Ant, Maven, Gradle, and more. But a tool named [sbt](http://www.scala-sbt.org) was the first build tool that was specifically created for Scala, and these days it’s supported by [Lightbend](https://www.lightbend.com), the company that was co-founded by Scala creator Martin Odersky that also maintains Akka, the Play web framework, and more.
1818

19-
>If you haven’t already installed SBT, here’s a link to [its download page](http://www.scala-sbt.org/download.html).
19+
>If you haven’t already installed sbt, here’s a link to [its download page](http://www.scala-sbt.org/download.html).
2020
2121

2222

23-
## The SBT directory structure
23+
## The sbt directory structure
2424

25-
Like Maven, SBT uses a standard project directory structure. If you use that standard directory structure you’ll find that it’s relatively simple to build your first projects.
25+
Like Maven, sbt uses a standard project directory structure. If you use that standard directory structure you’ll find that it’s relatively simple to build your first projects.
2626

27-
The first thing to know is that underneath your main project directory, SBT expects a directory structure that looks like this:
27+
The first thing to know is that underneath your main project directory, sbt expects a directory structure that looks like this:
2828

2929
```bash
3030
build.sbt
@@ -42,9 +42,9 @@ target/
4242
```
4343

4444

45-
## Creating a “Hello, world” SBT project directory structure
45+
## Creating a “Hello, world” sbt project directory structure
4646

47-
Creating this directory structure is pretty simple, and you can use a shell script like [sbtmkdirs](https://alvinalexander.com/sbtmkdirs) to create new projects. But you don’t have to use that script; assuming that you’re using a Unix/Linux system, you can just use these commands to create your first SBT project directory structure:
47+
Creating this directory structure is pretty simple, and you can use a shell script like [sbtmkdirs](https://alvinalexander.com/sbtmkdirs) to create new projects. But you don’t have to use that script; assuming that you’re using a Unix/Linux system, you can just use these commands to create your first sbt project directory structure:
4848

4949
```bash
5050
mkdir HelloWorld
@@ -73,7 +73,7 @@ $ find .
7373

7474
If you see that, you’re in great shape for the next step.
7575

76-
>There are other ways to create the files and directories for an SBT project. One way is to use the `sbt new` command, [which is documented here on scala-sbt.org](http://www.scala-sbt.org/1.x/docs/Hello.html). That approach isn’t shown here because some of the files it creates are more complicated than necessary for an introduction like this.
76+
>There are other ways to create the files and directories for an sbt project. One way is to use the `sbt new` command, [which is documented here on scala-sbt.org](http://www.scala-sbt.org/1.x/docs/Hello.html). That approach isn’t shown here because some of the files it creates are more complicated than necessary for an introduction like this.
7777
7878

7979

@@ -92,7 +92,7 @@ version := "1.0"
9292
scalaVersion := "{{ site.scala-version }}"
9393
```
9494

95-
Because SBT projects use a standard directory structure, SBT already knows everything else it needs to know.
95+
Because sbt projects use a standard directory structure, sbt already knows everything else it needs to know.
9696

9797
Now you just need to add a little “Hello, world” program.
9898

@@ -108,7 +108,7 @@ object HelloWorld extends App {
108108
}
109109
```
110110

111-
Now you can use SBT to compile your project, where in this example, your project consists of that one file. Use the `sbt run` command to compile and run your project. When you do so, you’ll see output that looks like this:
111+
Now you can use sbt to compile your project, where in this example, your project consists of that one file. Use the `sbt run` command to compile and run your project. When you do so, you’ll see output that looks like this:
112112

113113
````
114114
$ sbt run
@@ -131,7 +131,7 @@ Hello, world
131131
[success] Total time: 4 s
132132
````
133133

134-
The first time you run `sbt` it needs to download some things and can take a while to run, but after that it gets much faster. As the first comment in that output shows, it’s also faster to run SBT interactively. To do that, first run the `sbt` command by itself:
134+
The first time you run `sbt` it needs to download some things and can take a while to run, but after that it gets much faster. As the first comment in that output shows, it’s also faster to run sbt interactively. To do that, first run the `sbt` command by itself:
135135

136136
````
137137
> sbt
@@ -150,7 +150,7 @@ Hello, world
150150

151151
There, that’s much faster.
152152

153-
If you type `help` at the SBT command prompt you’ll see a bunch of other commands you can run. But for now, just type `exit` to leave the SBT shell. You can also press `CTRL-D` instead of typing `exit`.
153+
If you type `help` at the sbt command prompt you’ll see a bunch of other commands you can run. But for now, just type `exit` to leave the sbt shell. You can also press `CTRL-D` instead of typing `exit`.
154154

155155

156156

0 commit comments

Comments
 (0)