You can try installing Chef DK, but I've found it much easier to just use RVM and Bundler to manage ruby and gems; YMMV.
To run the full test suite:
# this will take a while, especially the first time
$> script/cibuild
...
# check the final result; bash return codes: 0 is good, anything else is not
$> echo $?
-
to run just the chefspecs:
$> rspec
-
to run just the test kitchen serverspec integration tests:
# this is done via docker/kitchen-docker # the list of OSes is defined in .kitchen.yml $> kitchen verify # test a specific OS; `kitchen list` $> kitchen verify default-ubuntu-1604
-
check for style issues with Foodcritic
# run on the project root dir $> foodcritic .