You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add ``recipe[minitest-handler]`` somewhere on your run_list, preferably last
65
-
* Place tests in ``files/default/test/`` with the name **your-recipe-name\_test.rb**
61
+
* Place tests in ``files/default/test/`` with the name **your-recipe-name\_test.rb**
66
62
(default recipe is named **default_test.rb**)
67
63
* Put any helper functions you have in ``files/default/test/spec_helper.rb`` but
68
64
minitest-handler will ensure that you have access to any file that
69
65
matches the glob ``files/test/*helper.rb``
70
66
71
67
[Minitest](https://github.com/seattlerb/minitest)
72
68
73
-
Examples
74
-
========
75
-
69
+
## Examples
76
70
### Traditional minitest
77
71
78
72
class TestApache2 < MiniTest::Chef::TestCase
@@ -113,7 +107,7 @@ Examples
113
107
For more detailed examples, see [here](https://github.com/calavera/minitest-chef-handler/blob/v0.4.0/examples/spec_examples/files/default/tests/minitest/example_test.rb)
114
108
115
109
116
-
###Testing this cookbook
110
+
## Testing this cookbook
117
111
118
112
This cookbook currently uses [test-kitchen](https://github.com/opscode/test-kitchen)
119
113
along with the [kitchen-vagrant](https://github.com/opscode/kitchen-vagrant).
@@ -129,7 +123,7 @@ are in this cookbook, see the [chef-rvm](https://github.com/fnichol/chef-rvm),
129
123
tested on Windows machines. See https://github.com/btm/minitest-handler-cookbook/issues/45
130
124
for more of the background on this.
131
125
132
-
###Releasing
126
+
## Releasing
133
127
This cookbook uses an 'even number' release strategy. The version number in master
134
128
will always be an odd number indicating development, and an even number will
135
129
be used when an official build is released.
@@ -143,3 +137,8 @@ Come release time here is the checklist:
143
137
* Share the cookbook to the community site
144
138
`knife cookbook site share minitest-handler Utilities -o ../`
145
139
* Bump the version in metadata.rb to the next *patch level* odd number
0 commit comments