- #79 Fix Chef 13 support
- Upgrade ChefSpec from
4.0.0
to4.4.0
- Upgrade foodcritic from
4.0.0
to5.0.0
- Upgrade rubucop from
0.24.1
to0.34.2
- Address Chef 12
compile_time
deprecations aroundchef_gem
resources - #77 - Fix issue when running on Windows under Test Kitchen
- Add Chefspec tests for default recipe
- #67 - Perform more exact matching on which test files should be run
- #73 @josegonzalez - Support for an alternative approach to ignoring recipes
- #75 @heathsnow - Added ability to specify a source for minitest-chef-handler gem.
- #76 @b-dean -
Bump the version of the minitest-chef-handler gem to
v1.1.0
- #64 -
Fixed bug where test files were not dected properly detected under
chef-client
- #62 -
Increase default version of
chef_handler_gem
from 1.0.1 to 1.0.3. If for some reason you wish to avoid 1.0.3 ensure you set a value of 1.0.1 fornode[:minitest][:chef_handler_gem_version]
- #61 - Fix bug where Windows drive letters would cause errors when fetching cookbook files. Thanks matt-richardson!
- #63 -
The
ci_reporter
gem version can now be controlled via the node attributenode[:minitest][:ci_reporter_gem_version]
, with a default of1.9.2
. Thanks jwitrick! - Upgraded versions of Chefspec, Foodcritic, and Rubocop
- Fixed bug where a test file saved in
files/default
(instead of one of the documented paths) would get processed. If you were previously relying on this unintended behaviour you will need to move your test files intofiles/default/test/
. A warning will be logged if any of these files are found to help you identify if this change affects you. - Efficiency Improvement. Previously all test files for a given cookbook would be downloaded to a temp directory regardless of if they were needed or not. Now only test files that are actually needed will be downloaded
- #58 -
Expand use of
node[:minitest][:filter]
. Previously the filter would be applied to the execution of minitest, however files not matching the filter could still be downloaded but not executed. Now test file names not matching the filter won't be downloaded at all. - Rubocop cleanup
- Apply workaround for for build tools issues
- #57 - Fix for CHEF-3694
- #55 -
Fix regression in 1.1.0 which was causing
undefined method 'scratch_dir'
- #47 - Control the version of minitest-chef-handler gem via node attribute
- #45 - Switch test-kitchen from lxc driver to vagrant driver, allowing tests to be run on Windows based host (Windows VMs still not supported)
- Moving long ruby block into a helper library to address FC014
- Check both paths in files
- Wrap the new to guard against chef solo per bryanwb's suggestion
- Force a download of testing files from chef server
- Fix test/support files detection when
cookbook_path
is an Array
The path for placing your tests is now files/default/test/ however this change is backwards compatible, the minitest-hander::default recipe will also look in the old location files/default/tests/minitest/
You should name your support files something that matches files/default/test/helper.rb. The old support support/ location will also be honored.
New Features:
- You can place minitest-handler anywhere in your run_list and it will
work. I like to use
include_recipe
to add it. - You can easily limit which tests are run by setting the array node.set[:minitest][:recipes] with only those recipes that you want tested
- minitest-handler now also will run test for any recipes added to the run_list via include_recipe, environment, or roles.
Niceties:
- Added tests w/ test-kitchen 1.0, kitchen-lxc, and BATS
- huge code cleanup
- add windows support tks to David Petzel
- add travis-ci integration
- change maintainer to Bryan W. Berry
- Add better examples to the readme
- pass foodcritic
- MINITEST-HANDLER-COOKBOOK-12 ensure minitest gem used and not the standard library in 1.9
- MINITEST-HANDLER-COOKBOOK-11 Add support for Chef-Solo
- Create the /var/chef/minitest directory if it doesn't already exist
- Install the minitest-chef-handler gem instead of downloading from github directly
- Remove tests from cookbooks no longer in the run list
Add examples/ top level directory (may not work)