busser-shindo 0.2.0 → 0.3.0
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.
- checksums.yaml +4 -4
- data/.cane +1 -0
- data/.tailor +3 -1
- data/.travis.yml +1 -0
- data/CHANGELOG.md +5 -0
- data/README.md +40 -3
- data/lib/busser/runner_plugin/shindo.rb +7 -2
- data/lib/busser/shindo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33b7313662f88e433bd9bb99e9303a0e267cdbd2
|
4
|
+
data.tar.gz: 85ad919a8ddd55d9a24b056bb50336ea72f92e27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb45d89b6d9ef57b228f1d37788d79db9e14c245d35d22ad122c3130e46e3677afd521ae84153d6a2186271e8963726167fb9a87ca9372e22aad9b76ce194321
|
7
|
+
data.tar.gz: f5a6d793add35e46be99ad8600277e1c05f45d64ee925c845f98677c52b9b3c0fd880551edf70dbc8c4d6f5042f4a3c4ccaa5dedd44275ff38c0834519370d3c
|
data/.cane
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
--style-measure 100
|
data/.tailor
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,14 +1,51 @@
|
|
1
1
|
# <a name="title"></a> Busser::RunnerPlugin::Shindo
|
2
2
|
|
3
|
-
|
3
|
+
[](http://badge.fury.io/rb/busser-shindo)
|
4
|
+
[](https://travis-ci.org/OpsRockin/busser-shindo)
|
5
|
+
|
6
|
+
A Busser runner plugin for the Shindo.
|
7
|
+
|
8
|
+
The Shindo is simple depth first ruby testing.
|
4
9
|
|
5
10
|
## <a name="installation"></a> Installation and Setup
|
6
11
|
|
7
|
-
|
12
|
+
Put test which written using the Shindo to `test/integration/${suite_name}/shindo`directory.
|
13
|
+
|
14
|
+
```
|
15
|
+
test
|
16
|
+
└── integration
|
17
|
+
└── ${suite_name}
|
18
|
+
└── shindo
|
19
|
+
└── example_tests.rb
|
20
|
+
```
|
21
|
+
|
22
|
+
### <a name="bundler_support"></a> Bundler(Gemfile) Support!
|
23
|
+
|
24
|
+
|
25
|
+
Put Gemfile to `test/integration/${suite_name}/shindo`directory.
|
26
|
+
|
27
|
+
Will run `bundle install` before running test.
|
28
|
+
|
29
|
+
```
|
30
|
+
test
|
31
|
+
└── integration
|
32
|
+
└── ${suite_name}
|
33
|
+
└── shindo
|
34
|
+
├── Gemfile ## Here
|
35
|
+
└── example_tests.rb
|
36
|
+
```
|
37
|
+
|
38
|
+
|
8
39
|
|
9
40
|
## <a name="usage"></a> Usage
|
10
41
|
|
11
|
-
|
42
|
+
run ` kitchen verify`
|
43
|
+
|
44
|
+
Your tests will run with `shindont` command automatically.
|
45
|
+
|
46
|
+
How to write test using the Shindo?
|
47
|
+
See here. [https://github.com/geemus/shindo](https://github.com/geemus/shindo).
|
48
|
+
|
12
49
|
|
13
50
|
## <a name="development"></a> Development
|
14
51
|
|
@@ -31,13 +31,18 @@ class Busser::RunnerPlugin::Shindo < Busser::RunnerPlugin::Base
|
|
31
31
|
|
32
32
|
def test
|
33
33
|
## Refered from busser-rspec
|
34
|
-
|
34
|
+
gemfile_path = File.join(suite_path, 'shindo', 'Gemfile')
|
35
|
+
if File.exists?(gemfile_path)
|
35
36
|
# Bundle install local completes quickly if the gems are already found locally
|
36
37
|
# it fails if it needs to talk to the internet. The || below is the fallback
|
37
38
|
# to the internet-enabled version. It's a speed optimization.
|
38
|
-
|
39
|
+
banner('Bundle Installing..')
|
40
|
+
ENV['PATH'] = [ENV['PATH'], Gem.bindir].join(':')
|
41
|
+
bundle_option = "--gemfile #{gemfile_path}"
|
42
|
+
run("bundle install --local #{bundle_option} || bundle install #{bundle_option}")
|
39
43
|
end
|
40
44
|
|
45
|
+
banner('run shindont')
|
41
46
|
run!("env PATH=#{ENV['PATH']}:#{Gem.bindir} shindont #{suite_path('shindo')}")
|
42
47
|
end
|
43
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: busser-shindo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yukihiko Sawanobori
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: busser
|