busser-bash 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +8 -0
- data/CHANGELOG.md +7 -1
- data/Gemfile +6 -0
- data/Guardfile +12 -0
- data/README.md +30 -10
- data/busser-bash.gemspec +2 -2
- data/features/plugin_install_command.feature +11 -0
- data/features/plugin_list_command.feature +8 -0
- data/features/support/env.rb +13 -0
- data/features/test_command.feature +35 -0
- data/lib/busser/bash/version.rb +2 -1
- data/lib/busser/runner_plugin/bash.rb +1 -1
- metadata +15 -8
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 0.1.2 / 2013-04-10
|
2
|
+
|
3
|
+
### Improvements
|
4
|
+
|
5
|
+
* Project skeleton updates. ([@fnichol][])
|
6
|
+
|
7
|
+
|
1
8
|
## 0.1.1 / 2013-03-30
|
2
9
|
|
3
10
|
* A no-op release to help with Busser gem testing of plugin installs. ([@fnichol][])
|
@@ -6,6 +13,5 @@
|
|
6
13
|
|
7
14
|
* Initial release
|
8
15
|
|
9
|
-
[@fnichol]: https://github.com/fnichol
|
10
16
|
<!--- The following link definition list is generated by PimpMyChangelog --->
|
11
17
|
[@fnichol]: https://github.com/fnichol
|
data/Gemfile
CHANGED
data/Guardfile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
guard 'cucumber' do
|
2
|
+
watch(%r{^features/.+\.feature$})
|
3
|
+
watch(%r{^features/support/.+$}) { 'features' }
|
4
|
+
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) do |m|
|
5
|
+
Dir[File.join("**/#{m[1]}.feature")][0] || 'features'
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
guard 'cane' do
|
10
|
+
watch(%r|.*\.rb|)
|
11
|
+
watch('.cane')
|
12
|
+
end
|
data/README.md
CHANGED
@@ -1,24 +1,44 @@
|
|
1
|
-
#
|
1
|
+
# <a name="title"></a> Busser::RunnerPlugin::Bash
|
2
2
|
|
3
3
|
[](https://travis-ci.org/fnichol/busser-bash)
|
4
4
|
[](https://codeclimate.com/github/fnichol/busser-bash)
|
5
5
|
|
6
|
-
|
6
|
+
A Busser runner plugin for Bash
|
7
7
|
|
8
|
-
## Installation
|
8
|
+
## <a name="installation"></a> Installation and Setup
|
9
9
|
|
10
|
-
|
10
|
+
Please read the Busser [plugin usage][plugin_usage] page for more details.
|
11
11
|
|
12
|
-
|
12
|
+
## <a name="usage"></a> Usage
|
13
13
|
|
14
|
-
|
14
|
+
**TODO:** Write documentation explaining the structure/format of testing files.
|
15
15
|
|
16
|
-
|
16
|
+
## <a name="development"></a> Development
|
17
17
|
|
18
|
-
|
18
|
+
* Source hosted at [GitHub][repo]
|
19
|
+
* Report issues/questions/feature requests on [GitHub Issues][issues]
|
19
20
|
|
20
|
-
|
21
|
+
Pull requests are very welcome! Make sure your patches are well tested.
|
22
|
+
Ideally create a topic branch for every separate change you make. For
|
23
|
+
example:
|
24
|
+
|
25
|
+
1. Fork the repo
|
21
26
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
22
|
-
3. Commit your changes (`git commit -am '
|
27
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
23
28
|
4. Push to the branch (`git push origin my-new-feature`)
|
24
29
|
5. Create new Pull Request
|
30
|
+
|
31
|
+
## <a name="authors"></a> Authors
|
32
|
+
|
33
|
+
Created and maintained by [Fletcher Nichol][author] (<fnichol@nichol.ca>)
|
34
|
+
|
35
|
+
## <a name="license"></a> License
|
36
|
+
|
37
|
+
Apache 2.0 (see [LICENSE][license])
|
38
|
+
|
39
|
+
|
40
|
+
[author]: https://github.com/fnichol
|
41
|
+
[issues]: https://github.com/fnichol/busser-bash/issues
|
42
|
+
[license]: https://github.com/fnichol/busser-bash/blob/master/LICENSE
|
43
|
+
[repo]: https://github.com/fnichol/busser-bash
|
44
|
+
[plugin_usage]: http://docs.kitchen-ci.org/busser/plugin-usage
|
data/busser-bash.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Busser::Bash::VERSION
|
9
9
|
spec.authors = ["Fletcher Nichol"]
|
10
10
|
spec.email = ["fnichol@nichol.ca"]
|
11
|
-
spec.description = %q{
|
11
|
+
spec.description = %q{A Busser runner plugin for Bats}
|
12
12
|
spec.summary = spec.description
|
13
13
|
spec.homepage = "https://github.com/fnichol/busser-bash"
|
14
14
|
spec.license = 'Apache 2.0'
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'busser', '~> 0.
|
21
|
+
spec.add_dependency 'busser', '~> 0.2.0'
|
22
22
|
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
24
24
|
spec.add_development_dependency 'rake'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
Feature: Plugin install command
|
2
|
+
In order to use this plugin
|
3
|
+
As a user of Busser
|
4
|
+
I want to run the postinstall for this plugin
|
5
|
+
|
6
|
+
Background:
|
7
|
+
Given a test BUSSER_ROOT directory named "busser-bash-install"
|
8
|
+
|
9
|
+
Scenario: Running the postinstall generator
|
10
|
+
When I run `busser plugin install busser-bash --force-postinstall`
|
11
|
+
Then the exit status should be 0
|
@@ -0,0 +1,8 @@
|
|
1
|
+
Feature: Plugin list command
|
2
|
+
In order to use this plugin
|
3
|
+
As a user of Busser
|
4
|
+
I want to see this plugin in the 'busser plugin list' command
|
5
|
+
|
6
|
+
Scenario: Plugin appears in plugin list command
|
7
|
+
When I successfully run `busser plugin list`
|
8
|
+
Then the output should match /^bash\b/
|
data/features/support/env.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'aruba/cucumber'
|
2
|
+
require 'busser/cucumber'
|
3
|
+
|
4
|
+
Before do
|
5
|
+
@aruba_timeout_seconds = 10
|
6
|
+
end
|
7
|
+
|
8
|
+
After do |s|
|
9
|
+
# Tell Cucumber to quit after this scenario is done - if it failed.
|
10
|
+
# This is useful to inspect the 'tmp/aruba' directory before any other
|
11
|
+
# steps are executed and clear it out.
|
12
|
+
Cucumber.wants_to_quit = true if s.failed?
|
13
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
Feature: Test command
|
2
|
+
In order to run tests written in good old shell/bash
|
3
|
+
As a user of Busser
|
4
|
+
I want my tests to run when the bash runner plugin is installed
|
5
|
+
|
6
|
+
Background:
|
7
|
+
Given a test BUSSER_ROOT directory named "busser-bash-test"
|
8
|
+
When I successfully run `busser plugin install busser-bash --force-postinstall`
|
9
|
+
Given a suite directory named "bash"
|
10
|
+
|
11
|
+
Scenario: A passing test suite
|
12
|
+
Given a file in suite "bash" named "foo_spec.bash" with:
|
13
|
+
"""
|
14
|
+
#!/usr/bin/env bash
|
15
|
+
set -e
|
16
|
+
|
17
|
+
echo "A bash test"
|
18
|
+
exit 0
|
19
|
+
"""
|
20
|
+
When I run `busser test bash`
|
21
|
+
Then the output should contain "[bash] foo_spec.bash"
|
22
|
+
And the output should match /^A bash test$/
|
23
|
+
And the exit status should be 0
|
24
|
+
|
25
|
+
Scenario: A failing test suite
|
26
|
+
Given a file in suite "bash" named "foo_spec.bash" with:
|
27
|
+
"""
|
28
|
+
#!/usr/bin/env bash
|
29
|
+
set -e
|
30
|
+
|
31
|
+
echo "A failing bash test"
|
32
|
+
exit 99
|
33
|
+
"""
|
34
|
+
When I run `busser test bash`
|
35
|
+
And the exit status should not be 0
|
data/lib/busser/bash/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: busser-bash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: busser
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.2.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: bundler
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,7 +171,7 @@ dependencies:
|
|
171
171
|
- - ! '>='
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0'
|
174
|
-
description:
|
174
|
+
description: A Busser runner plugin for Bats
|
175
175
|
email:
|
176
176
|
- fnichol@nichol.ca
|
177
177
|
executables: []
|
@@ -185,11 +185,15 @@ files:
|
|
185
185
|
- .travis.yml
|
186
186
|
- CHANGELOG.md
|
187
187
|
- Gemfile
|
188
|
+
- Guardfile
|
188
189
|
- LICENSE
|
189
190
|
- README.md
|
190
191
|
- Rakefile
|
191
192
|
- busser-bash.gemspec
|
193
|
+
- features/plugin_install_command.feature
|
194
|
+
- features/plugin_list_command.feature
|
192
195
|
- features/support/env.rb
|
196
|
+
- features/test_command.feature
|
193
197
|
- lib/busser/bash/version.rb
|
194
198
|
- lib/busser/runner_plugin/bash.rb
|
195
199
|
homepage: https://github.com/fnichol/busser-bash
|
@@ -207,7 +211,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
211
|
version: '0'
|
208
212
|
segments:
|
209
213
|
- 0
|
210
|
-
hash:
|
214
|
+
hash: 430229957590227575
|
211
215
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
216
|
none: false
|
213
217
|
requirements:
|
@@ -216,12 +220,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
220
|
version: '0'
|
217
221
|
segments:
|
218
222
|
- 0
|
219
|
-
hash:
|
223
|
+
hash: 430229957590227575
|
220
224
|
requirements: []
|
221
225
|
rubyforge_project:
|
222
226
|
rubygems_version: 1.8.24
|
223
227
|
signing_key:
|
224
228
|
specification_version: 3
|
225
|
-
summary:
|
229
|
+
summary: A Busser runner plugin for Bats
|
226
230
|
test_files:
|
231
|
+
- features/plugin_install_command.feature
|
232
|
+
- features/plugin_list_command.feature
|
227
233
|
- features/support/env.rb
|
234
|
+
- features/test_command.feature
|