Registry / testing / chefspec

chefspec

JSON →
library9.3.8rbrubygemsunverified

ChefSpec is a unit testing and resource coverage framework for testing Chef cookbooks without virtual machines.

gem install chefspec
INSTALL
IMPORT
SIG · CHEFSPEC
C
chefspec
testingrubyv9.3.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ChefSpec
require 'chefspec'

Write a ChefSpec test to verify a Chef recipe installs nginx.

require 'chefspec' RSpec.describe 'example::default' do let(:chef_run) { ChefSpec::SoloRunner.new.converge(described_recipe) } it 'installs nginx' do expect(chef_run).to install_package('nginx') end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
9.3.8latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
chefspec — gem install chefspec · libregistry