Chef 14: ChefSpec Coverage Reporting Deprecation

Since ChefSpec 7.1.2, the coverage reporting within ChefSpec is deprecated.

If you have coverage reporting enabled, you will see the follwoing warning in your ChefSpec logs:

ChefSpec's coverage reporting is deprecated and will be removed in a future version

Unfortunately the team don't want to support this as they recommend focussing test efforts on the logic-heavy portions of the cookbook rather than testing everything.

Note that you will not see this message until you have ChefDK 2.5.3 or higher.

Written by Jamie Tanna on 13 November 2018, and last updated on 30 December 2018.

Content for this article is shared under the terms of the Creative Commons Attribution Non Commercial Share Alike 4.0 International, and code is shared under the Apache License 2.0.



Other posts you may be interested in: