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

Run only tests for the recipes invoked #10

Closed calavera closed 12 years ago

calavera commented 12 years ago

A possible approach is to run only the tests that match their class name with the recipe name, see:

https://github.com/calavera/minitest-chef-handler/pull/7#r679266

That would work for test unit thought where the class name can be NginxConfigurationTest.

As part of this, I think we should load the test suite as late as possible, so we need to move these two lines and put them after creating the runner:

https://github.com/calavera/minitest-chef-handler/blob/master/lib/minitest-chef-handler.rb#L7-8

crekev commented 12 years ago

awesome! When is the gem containing this improvement going to be published?

calavera commented 12 years ago

you got it, I just pushed a new version, let me know if you find any issue.

Enjoy!