29 lines
617 B
Markdown
29 lines
617 B
Markdown
# Testing
|
|
|
|
## Prerequisites
|
|
|
|
`Docker` and `ruby` need to be installed on the local machine.
|
|
|
|
## Running Tests
|
|
|
|
After cloning the repository the testing environment should be set up on the
|
|
local machine:
|
|
|
|
```
|
|
$ bundle install --path vendor/bundle
|
|
$ bundle exec rake
|
|
```
|
|
|
|
With running `rake` the whole testsuite is triggered, this
|
|
includes:
|
|
|
|
* puppet syntax validation
|
|
* code-style enforcement (with `puppet-lint`)
|
|
* unit-tests (with `rspec-puppet`)
|
|
* acceptance-tests (with `beaker-rspec`)
|
|
|
|
## Coding Standards
|
|
|
|
* All variables are defined in the base manifest (init.pp)
|
|
* No more than 140 characters per line
|