Skip to content

Commit

Permalink
Improve testing doc
Browse files Browse the repository at this point in the history
  • Loading branch information
afaundez committed Dec 23, 2021
1 parent 4c2aedb commit 5c12603
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions TESTING.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,40 @@
# Testing

Tested using chef-workstation from Homebrew
## Unit testing and liting

# Lint and Style
Tested using chef-workstation devcontainer.

In the case you are not using the devcontainer you will probably need to install the dependencies before running the tests:

```sh
CHEF_LICENSE=accept-no-persist delivery local lint
berks install --except integration
```

# Unit specs
### Lint and Style

```sh
CHEF_LICENSE=accept-no-persist delivery local lint
```
berks install --except integration

### Unit specs

```sh
CHEF_LICENSE=accept-no-persist delivery local unit
```

# Integration tests
## Integration tests

Check [Test Kitchen](https://kitchen.ci/docs/getting-started/running-test). Consider using the `--concurrency` flag when possible.

## kitchen-vagrant
### kitchen-vagrant

Tested locally with macOS Monterrey 12.1, VirtualBox 6.1.30, and Vagrant 2.2.19.

```sh
kitchen test
```

## kitchen-dokken
### kitchen-dokken

Tested locally with macOS Monterrey 12.1, and Docker Desktop 4.3.1.
Tested remotely with Github Actions.
Expand Down

0 comments on commit 5c12603

Please sign in to comment.