This repository is a Chef cookbook for configuring Jenkins for continuous integration of Cloud Foundry projects.
To run the unit tests (using ChefSpec):
bundle exec rspec
To run the Test Kitchen integration specs:
bundle exec kitchen test
However, that command can take an uncomfortably long time while you're iterating on changing the cookbook because it creates the VM from scratch every time. The interesting subcommands to make it quicker to iterate are:
bundle exec kitchen create
to create the VMbundle exec kitchen converge
to run the cookbook against the created VMbundle exec kitchen verify
to actually run the tests against the converged VMbundle exec kitchen login ubuntu
to start a session on the VM to inspect logs, e.g. when converge failsbundle exec kitchen destroy
if you want to destroy the VM