Closed bmhatfield closed 11 years ago
Brian, minitest-handler-cookbook copies the files to the host (defaulting to /var/chef/minitest). It looks like it expects support files to be in ../support, not ../helpers. See https://github.com/btm/minitest-handler-cookbook/blob/master/recipes/default.rb
should the helpers be in ./helpers instead of ./support?
i wrote that code but I am a novice when it comes to ruby testing
On Thu, Oct 4, 2012 at 4:34 PM, Jim Hopp notifications@github.com wrote:
Brian, minitest-handler-cookbook copies the files to the host (defaulting to /var/chef/minitest). It looks like it expects support files to be in ../support, not ../helpers. See https://github.com/btm/minitest-handler-cookbook/blob/master/recipes/default.rb
— Reply to this email directly or view it on GitHubhttps://github.com/btm/minitest-handler-cookbook/issues/23#issuecomment-9143338.
I haven't used helpers in my tests so I can't answer definitively. I think you have two choices: modify the minitest-handler-cookbook to upload minitests/helpers, or move your helper code to support/.
On Thu, Oct 4, 2012 at 7:41 AM, Bryan Berry notifications@github.comwrote:
should the helpers be in ./helpers instead of ./support?
i wrote that code but I am a novice when it comes to ruby testing
On Thu, Oct 4, 2012 at 4:34 PM, Jim Hopp notifications@github.com wrote:
Brian, minitest-handler-cookbook copies the files to the host (defaulting to /var/chef/minitest). It looks like it expects support files to be in ../support, not ../helpers. See
https://github.com/btm/minitest-handler-cookbook/blob/master/recipes/default.rb
— Reply to this email directly or view it on GitHub< https://github.com/btm/minitest-handler-cookbook/issues/23#issuecomment-9143338>.
— Reply to this email directly or view it on GitHubhttps://github.com/btm/minitest-handler-cookbook/issues/23#issuecomment-9143643.
I would recommend using support/
Sorry, I wasn't paying attention to the sender (Bryan vs. Brian)!
On Thu, Oct 4, 2012 at 1:58 PM, Brian Scott notifications@github.comwrote:
I would recommend using support/
— Reply to this email directly or view it on GitHubhttps://github.com/btm/minitest-handler-cookbook/issues/23#issuecomment-9156876.
Did get your issue resolved @jimhopp ?
I believe there isn't an actionable task here. There has been no activity in a year, and I think the documentation covers where the acceptable places for support files are. If there is an actionable task here report back and we'll reopen this.
I have downloaded the OpsCode community cookbook to manage Chef Client. In that cookbook are some minitest tests, in the following hierarchy:
Within the given tests, there is a cross dependency on helpers.rb, like so:
However, when running chef-client with minitest handler enabled, I get the following error:
This was confusing to me, so I troubleshooted the 'require' code above, and determined that the file was not actually there, which is confirmed on the host:
I am having a hard time understanding how I am getting into this state. What can I do to provide more troubleshooting data? Is there something I am not understanding about minitest-handler?