Using Test Kitchen and ChefDK, one can test Chef cookbooks across multiple platforms. Key steps include:
1. Installing Chefdk, Docker and generating a new cookbook with boilerplate files and tests.
2. Configuring .kitchen.yml to define platforms, suites, attributes, and dependencies.
3. Adding nodes, data bags, and environments to test integration.
4. Iteratively developing code and running kitchen create, converge, verify on instances to test changes, and finally kitchen test to run all suites and platforms.