Atalanta / cucumber-chef

Framework for test-driven infrastructure development
http://cucumber-chef.org
Apache License 2.0
265 stars 55 forks source link

Artifacts #91

Closed zpatten closed 11 years ago

zpatten commented 11 years ago

I've just about finalized the initial implementation of artifacting for cucumber-chef. This functionality will generate collated artifacts for feature/scenario runs bringing higher visibility and facilitating debugging. Currently the chef-client log and stacktrace are saved. I am implementing this so it will ultimately be configurable; one could generate artifacts from chef generated templates for example.

zpatten commented 11 years ago

In the latest version of master one can now do something like this in your CC config.rb:

    artifacts                       ({ "chef-client-log" => "/var/log/chef/client.log",
                                       "chef-client-stacktrace" => "/var/chef/cache/chef-stacktrace.out" })

Artifacts are collated and saved to <chef-repo>/.cucumber-chef/artifacts/<feature>/<feature file name>.txt