Commit 809d196d authored by Jamie Tanna's avatar Jamie Tanna

Merge branch 'article/chef-14-validation-errors' into 'master'

Document ChefSpec's coverage reporting being deprecated

See merge request !203
parents c11a96bd 5206c770
Pipeline #36352863 passed with stages
in 10 minutes and 4 seconds
---
layout: post
title: "Chef 14: ChefSpec Coverage Reporting Deprecation"
description: Noting the deprecation of using `ChefSpec::Coverage.start!` when using Chef 14 and above.
categories: blogumentation chef-14-upgrade
tags: chef-14 chef-14-upgrade chefspec test-coverage
no_toc: true
image: /assets/img/vendor/chef-logo.png
---
Since [ChefSpec 7.1.2](https://github.com/chefspec/chefspec/tree/v7.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](https://github.com/chefspec/chefspec/pull/891#issuecomment-398418432) rather than testing everything.
Note that you will not see this message until you have ChefDK 2.5.3 or higher.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment