chef-boneyard / minitest-chef-handler

Run minitest suites after your Chef recipes to check the status of your system.
Other
163 stars 44 forks source link

Minitest logging misbehaving #75

Closed Rucknar closed 9 years ago

Rucknar commented 10 years ago

I've noted that when we define a log_location in our client.rb file then minitest will log out to the file but no longer include the results in STDOUT. chef-client logs to standard out by default and to a log location, would it be possible to do this with minitest too?

We want the engineer running chef-client to be able to see his test results on the prompt, but also wish to keep a log of this stuff.

calavera commented 10 years ago

I don't really remember how Chef does that, but it should be pretty easy to fix modifying our log extension at:

https://github.com/calavera/minitest-chef-handler/blob/master/lib/minitest-chef-handler/core_ext.rb

Rucknar commented 10 years ago

Hey,

Trying to pick this up again as were still affected. A little more info...

I've raised this with Chef. I've had a look at that core_ext.rb file you mentioned but im not familiar enough with it to do a fix i'm afraid. What's the best way to proceed?