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 rake spec:unit
After installing vagrant and the omnibus Chef plugin:
brew install vagrant
vagrant plugin install vagrant-omnibus
To run the integration specs:
bundle exec rake spec:integration
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. A faster way to iterate would be to run the vagrant commands manually and run the tests using RSpec directly.
vagrant up
bundle exec rspec spec/integration
Upon changing code in the cookbook, you can re-provision the Vagrant VMs individually to cut down on waiting.
vagrant provision {master,slave}