Serverspec (Serverspec Version 2, which was released recently, is called Specinfra 2) is another standalone tool, written in Ruby, which tests the intended state of machines by SSH'ing to the machines and running commands. Specinfra 2 supports only rspec 3, which is a popular Ruby test framework, as against rspec 2, which Serverspec v1 supported. Serverspec has gained tremendous popularity over the last several months and its USPs are that it can run with or without any of the configuration management tools, and it is agentless and declarative in nature. A typical workflow though is to run configuration management scripts followed by Serverspec tests.
Let's look at how to install Serverspec and how to start using it.