You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In rspec and serverspec I'm used to being able to group multiple it blocks within a single describe block. With inspec I can do this but the console output doesn't seem to work correctly. Here is my example spec code:
When I run the tests, I get a checkmark but otherwise blank output in the console:
➜ dotfiles git:(master) ✗ ce kitchen verify default-ubuntu-1404 [6/140]
-----> Starting Kitchen (v1.10.2)
-----> Setting up <default-ubuntu-1404>...
Finished setting up <default-ubuntu-1404> (0m0.00s).
-----> Verifying <default-ubuntu-1404>...
Use `/Users/david/code/chef/chef_repos/david-workstation/cookbooks/dotfiles/test/recipes/default` for testing
Target: ssh://[email protected]:2222
✔
Summary: 3 successful, 0 failures, 0 skipped
In order to get output I have to include 3 separate describe blocks:
describe user('david') do
it { should exist }
end
describe user('david') do
its(:home) { should eq '/home/david' }
end
describe user('david') do
its(:shell) { should eq '/bin/zsh' }
end
...which outputs this:
➜ dotfiles git:(master) ✗ ce kitchen verify default-ubuntu-1404
-----> Starting Kitchen (v1.10.2)
-----> Verifying <default-ubuntu-1404>...
Use `/Users/david/code/chef/chef_repos/david-workstation/cookbooks/dotfiles/test/recipes/default` for testing
Target: ssh://[email protected]:2222
✔ User david should exist
✔ User david home should eq "/home/david"
✔ User david shell should eq "/bin/zsh"
Summary: 3 successful, 0 failures, 0 skipped
However the expected/desired output would be more like this:
User david
✔ home should eq "/home/david"
✔ shell should eq "/bin/zsh"
✔ should exist
Summary: 3 successful, 0 failures, 0 skipped
Is the current behavior expected/desired?
InSpec and Platform Version
Inspec v0.28.0
Mac OSX 10.11.6
Replication Case
Create an inspec test with multipe it blocks in a single describe block.
The text was updated successfully, but these errors were encountered:
Description
In
rspec
andserverspec
I'm used to being able to group multipleit
blocks within a singledescribe
block. Withinspec
I can do this but the console output doesn't seem to work correctly. Here is my example spec code:When I run the tests, I get a checkmark but otherwise blank output in the console:
In order to get output I have to include 3 separate
describe
blocks:...which outputs this:
However the expected/desired output would be more like this:
Is the current behavior expected/desired?
InSpec and Platform Version
Inspec v0.28.0
Mac OSX 10.11.6
Replication Case
Create an inspec test with multipe
it
blocks in a singledescribe
block.The text was updated successfully, but these errors were encountered: