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: README.md
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,36 @@ class { 'apache_hardening':
32
32
}
33
33
```
34
34
35
+
## Local Testing
36
+
37
+
For local testing you can use vagrant and Virtualbox of VMWare to run tests locally. You will have to install Virtualbox and Vagrant on your system. See [Vagrant Downloads](http://downloads.vagrantup.com/) for a vagrant package suitable for your system. For all our tests we use `test-kitchen`. If you are not familiar with `test-kitchen` please have a look at [their guide](http://kitchen.ci/docs/getting-started).
38
+
39
+
Next install test-kitchen:
40
+
41
+
```bash
42
+
# Install dependencies
43
+
gem install bundler
44
+
bundle install
45
+
46
+
# Fetch tests
47
+
bundle exec thor kitchen:fetch-remote-tests
48
+
49
+
# Do lint checks
50
+
bundle exec rake lint
51
+
52
+
# Do spec checks
53
+
bundle exec rake lint
54
+
55
+
# fast test on one machine
56
+
bundle exec kitchen test default-ubuntu-1204
57
+
58
+
# for development
59
+
bundle exec kitchen create default-ubuntu-1204
60
+
bundle exec kitchen converge default-ubuntu-1204
61
+
```
62
+
63
+
For more information see [test-kitchen](http://kitchen.ci/docs/getting-started)
64
+
35
65
## Contributors + Kudos
36
66
37
67
* Edmund Haselwanter [ehaselwanter](https://github.com/ehaselwanter)
0 commit comments