Vagrant: Add testing the code section to README
This commit is contained in:
parent
e5df44dc6a
commit
4c5c6f982c
|
@ -283,6 +283,12 @@ exec { 'install npm/mocha':
|
|||
require => Exec['install nodejs']
|
||||
}
|
||||
|
||||
exec { 'install npm/mocha-cobertura-reporter':
|
||||
command => 'npm install -g mocha-cobertura-reporter',
|
||||
creates => '/usr/lib/node_modules/cobertura',
|
||||
require => Exec['install npm/mocha']
|
||||
}
|
||||
|
||||
exec { 'install npm/jshint':
|
||||
command => 'npm install -g jshint',
|
||||
creates => '/usr/lib/node_modules/jshint',
|
||||
|
|
14
README.md
14
README.md
|
@ -162,3 +162,17 @@ This is what the **dc=icinga,dc=org** *DIT* looks like:
|
|||
> uid: rroe
|
||||
|
||||
All users share the password `password`.
|
||||
|
||||
#### Testing the code
|
||||
|
||||
All software required to run tests is installed in the virtual machine.
|
||||
In order to run all tests you have to execute the following commands:
|
||||
|
||||
vagrant ssh -c /vagrant/test/php/runtests
|
||||
vagrant ssh -c /vagrant/test/php/checkswag
|
||||
vagrant ssh -c /vagrant/test/js/runtests
|
||||
vagrant ssh -c /vagrant/test/js/checkswag
|
||||
vagrant ssh -c /vagrant/test/frontend/runtests
|
||||
|
||||
`runtests` will execute unit and regression tests and `checkswag` will report
|
||||
code style issues.
|
||||
|
|
Loading…
Reference in New Issue