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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98f32c29f3af8c20fd07685b4490c4662c900545
4
- data.tar.gz: 5d0d9e4a0ad56b204e93792d523a8a3ed5858b62
3
+ metadata.gz: 33b7313662f88e433bd9bb99e9303a0e267cdbd2
4
+ data.tar.gz: 85ad919a8ddd55d9a24b056bb50336ea72f92e27
5
5
  SHA512:
6
- metadata.gz: 5e9a5ee4d1ac75f096be7748479600c89c6f0f2c47c9eb3cf338fcf6499689095d864fc880f96e405c879b12da16afed93e60765d2ae99bbea5f5f6bcd345019
7
- data.tar.gz: d3775919cc36f52d0a2d52a70acbc0aac74de9aab05912c2dd31f726b8ac5d11462428b1802d964d53020986d0cb0922052d5803ae172273806e97b169d7a11a
6
+ metadata.gz: fb45d89b6d9ef57b228f1d37788d79db9e14c245d35d22ad122c3130e46e3677afd521ae84153d6a2186271e8963726167fb9a87ca9372e22aad9b76ce194321
7
+ data.tar.gz: f5a6d793add35e46be99ad8600277e1c05f45d64ee925c845f98677c52b9b3c0fd880551edf70dbc8c4d6f5042f4a3c4ccaa5dedd44275ff38c0834519370d3c
data/.cane CHANGED
@@ -0,0 +1 @@
1
+ --style-measure 100
data/.tailor CHANGED
@@ -1,4 +1,6 @@
1
1
  Tailor.config do |config|
2
2
  config.formatters "text"
3
- config.file_set 'lib/**/*.rb'
3
+ config.file_set 'lib/**/*.rb' do |style|
4
+ style.max_line_length 100
5
+ end
4
6
  end
data/.travis.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
+ - 2.1.0
4
5
  - 2.0.0
5
6
  - 1.9.3
6
7
  - 1.9.2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.1.2
2
+
3
+ - fix path to Gemfile
4
+ - Fix ENV['PATH'] when with bundler
5
+
1
6
  ## 0.1.1
2
7
 
3
8
  - fix Gem bin path
data/README.md CHANGED
@@ -1,14 +1,51 @@
1
1
  # <a name="title"></a> Busser::RunnerPlugin::Shindo
2
2
 
3
- A Busser runner plugin for Shindo
3
+ [![Gem Version](https://badge.fury.io/rb/busser-shindo.png)](http://badge.fury.io/rb/busser-shindo)
4
+ [![Build Status](https://travis-ci.org/OpsRockin/busser-shindo.png?branch=master)](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
- TODO: Write this.
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
- TODO: Write this.
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
- if File.exists?(File.join(suite_path, "Gemfile"))
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
- run("env PATH=#{ENV['PATH']}:#{Gem.bindir} bundle install --local || bundle install")
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
@@ -22,6 +22,6 @@ module Busser
22
22
  module Shindo
23
23
 
24
24
  # Version string for the Shindo Busser runner plugin
25
- VERSION = "0.2.0"
25
+ VERSION = "0.3.0"
26
26
  end
27
27
  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.2.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-21 00:00:00.000000000 Z
11
+ date: 2014-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: busser