Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expect syntax #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Expect syntax #22

wants to merge 2 commits into from

Conversation

tknerr
Copy link
Owner

@tknerr tknerr commented Sep 14, 2015

Switch to expect syntax which reads more nicely and produces better output in terms of "describing behaviour" rather than technical details.

Before:

       Package "apache2"
         should be installed

       Service "apache2"
         should be enabled
         should be running

       Port "80"
         should be listening

       File "/var/www/sample.html"
         should be file
         should contain "test all the things!"

       Finished in 0.20817 seconds (files took 0.31889 seconds to load)
       6 examples, 0 failures

After:

      sample-app::default       
         installs apache2
         runs starts the apache2 service
         listens on port 80
         renders the sample.html file

       Finished in 0.24001 seconds (files took 0.81071 seconds to load)
       4 examples, 0 failures

@tknerr
Copy link
Owner Author

tknerr commented Sep 14, 2015

@kimo @damphyr FYI - not sure what's really better, comparing the output before and after...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant