Skip to content
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

Change references for bats to point to bats-core #439

Closed
wants to merge 3 commits into from
Closed
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
29 changes: 23 additions & 6 deletions docs/TESTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,31 @@ $ brew install bats-core
🍺 /usr/local/Cellar/bats-core/1.1.0: 13 files, 55KB, built in 4 seconds
```

### For Ubuntu 15.10 or later
```
sudo apt-get install bats
```
### For Linux

#### Fedora 30 and newer

### For Red Hat, Scientific Linux, and CentOS 6 or later bats is found in the EPEL repository.
`bats` is packaged for Fedora 30 and newer, you can install it with

```bash
sudo dnf install bats
```
sudo yum install bats

#### Other Linux

For other Linux distributions the implementation of `bats` we use is not conveniently packaged. The best way to install it is from source: if you want to install it under `/usr/local` then
```bash
git clone https://github.com/bats-core/bats-core
cd bats-core/
sudo ./install.sh /usr/local
```
Following that, assuming `/usr/local/bin` is in your $PATH, you can now do:
```
$ bats
Error: Must specify at least one <test>
Usage: bats [-cr] [-f <regex>] [-j <jobs>] [-p | -t] <test>...
bats [-h | -v]
...
```

### For Windows (MINGW64/Cygwin)
Expand Down
10 changes: 5 additions & 5 deletions exercises/hello-world/.meta/hints.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ etc), you probably already have bash.

As there isn't much of a bash ecosystem, there also isn't really a de
facto leader in the bash testing area. For these examples we are using
[bats](https://github.com/sstephenson/bats). You should be able to
[bats](https://github.com/bats-core/bats-core). You should be able to
install it from your favorite package manager, on OS X with homebrew
this would look something like this:

```
$ brew install bats
==> Downloading
https://github.com/sstephenson/bats/archive/v0.4.0.tar.gz
https://github.com/bats-core/bats-core/archive/v1.2.0.tar.gz
==> Downloading from
https://codeload.github.com/sstephenson/bats/tar.gz/v0.4.0
https://codeload.github.com/bats-core/bats-core/tar.gz/v1.2.0
########################################################################
100.0%
==> ./install.sh /opt/boxen/homebrew/Cellar/bats/0.4.0
🍺 /opt/boxen/homebrew/Cellar/bats/0.4.0: 10 files, 60K, built in 2
==> ./install.sh /opt/boxen/homebrew/Cellar/bats/1.2.0
🍺 /opt/boxen/homebrew/Cellar/bats/1.2.0: 10 files, 60K, built in 2
seconds
```
10 changes: 5 additions & 5 deletions exercises/hello-world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ etc), you probably already have bash.

As there isn't much of a bash ecosystem, there also isn't really a de
facto leader in the bash testing area. For these examples we are using
[bats](https://github.com/sstephenson/bats). You should be able to
[bats](https://github.com/bats-core/bats-core). You should be able to
install it from your favorite package manager, on OS X with homebrew
this would look something like this:

```
$ brew install bats
==> Downloading
https://github.com/sstephenson/bats/archive/v0.4.0.tar.gz
https://github.com/bats-core/bats-core/archive/v1.2.0.tar.gz
==> Downloading from
https://codeload.github.com/sstephenson/bats/tar.gz/v0.4.0
https://codeload.github.com/bats-core/bats-core/tar.gz/v1.2.0
########################################################################
100.0%
==> ./install.sh /opt/boxen/homebrew/Cellar/bats/0.4.0
🍺 /opt/boxen/homebrew/Cellar/bats/0.4.0: 10 files, 60K, built in 2
==> ./install.sh /opt/boxen/homebrew/Cellar/bats/1.2.0
🍺 /opt/boxen/homebrew/Cellar/bats/1.2.0: 10 files, 60K, built in 2
seconds
```

Expand Down