```ruby
require 'chefspec'
require 'chefspec/berkshelf'

at_exit { ChefSpec::Coverage.report! }
```

Set testing log level to error, to remove deprecation spam
user
```ruby
require 'chefspec'
require 'chefspec/berkshelf'

at_exit { ChefSpec::Coverage.report! }

RSpec.configure do |config|
  config.log_level = :error
end
```
assistant