busser-shindo 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/LICENSE +2 -2
- data/README.md +1 -1
- data/busser-shindo.gemspec +1 -1
- data/features/test_command.feature +17 -2
- data/lib/busser/runner_plugin/shindo.rb +4 -5
- data/lib/busser/shindo/version.rb +3 -3
- 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: 78655bdd6c3e45e4acd88698f6e8c78b5a3cd7fa
|
4
|
+
data.tar.gz: 7fc63aa1daf9fd0931f823160c1b948009f12bad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7cddc11892a85b9df142ab8183fffffae1327c488a8abfc92bc5c09d3c5cbc387a7e5c5addd5e20b1325074048a5521f369b779636a9b7a4c1ad24ff8f19ef2
|
7
|
+
data.tar.gz: 12ac9ee0c620050299b46ef387929587efb823bea5daa1c01da4603baa07bc97102871fa151984fb4eefd00c8ee0cc780c39414d4a243188b6ffdb5cfbda9c69
|
data/CHANGELOG.md
CHANGED
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
Author:: Yukihiko
|
1
|
+
Author:: Sawanobori Yukihiko (<sawanoboriyu@higanworks.com)
|
2
2
|
|
3
|
-
Copyright (C) 2014, Yukihiko
|
3
|
+
Copyright (C) 2014, Sawanobori Yukihiko
|
4
4
|
|
5
5
|
Licensed under the Apache License, Version 2.0 (the "License");
|
6
6
|
you may not use this file except in compliance with the License.
|
data/README.md
CHANGED
@@ -67,7 +67,7 @@ example:
|
|
67
67
|
## <a name="authors"></a> Authors
|
68
68
|
|
69
69
|
|
70
|
-
Created and maintained by [Yukihiko
|
70
|
+
Created and maintained by [Sawanobori Yukihiko][author] (<sawanoboriyu@higanworks.com>)
|
71
71
|
(Original busser-serverspec) Created and maintained by [HIGUCHI Daisuke][author] (<d-higuchi@creationline.com>)
|
72
72
|
|
73
73
|
## <a name="license"></a> License
|
data/busser-shindo.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'busser/shindo/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'busser-shindo'
|
8
8
|
spec.version = Busser::Shindo::VERSION
|
9
|
-
spec.authors = ['Yukihiko
|
9
|
+
spec.authors = ['Sawanobori Yukihiko']
|
10
10
|
spec.email = ['sawanoboriyu@higanworks.com']
|
11
11
|
spec.description = %q{A Busser runner plugin for Shindo}
|
12
12
|
spec.summary = spec.description
|
@@ -10,7 +10,22 @@ Feature: Test command
|
|
10
10
|
Given a suite directory named "shindo"
|
11
11
|
|
12
12
|
Scenario: A passing test suite
|
13
|
-
Given a file in suite "shindo" named "shindo_tests.rb" with:
|
13
|
+
Given a file in suite "shindo" named "tests/shindo_tests.rb" with:
|
14
|
+
"""
|
15
|
+
Shindo.tests do
|
16
|
+
returns(true) { true }
|
17
|
+
returns(false) { false }
|
18
|
+
end
|
19
|
+
"""
|
20
|
+
When I run `busser test shindo`
|
21
|
+
Then the output should contain:
|
22
|
+
"""
|
23
|
+
2 succeeded in
|
24
|
+
"""
|
25
|
+
And the exit status should be 0
|
26
|
+
|
27
|
+
Scenario: A passing test suite using helper
|
28
|
+
Given a file in suite "shindo" named "tests/helper.rb" with:
|
14
29
|
"""
|
15
30
|
Shindo.tests do
|
16
31
|
returns(true) { true }
|
@@ -25,7 +40,7 @@ Feature: Test command
|
|
25
40
|
And the exit status should be 0
|
26
41
|
|
27
42
|
Scenario: A failing test suite
|
28
|
-
Given a file in suite "shindo" named "shindo_tests.rb" with:
|
43
|
+
Given a file in suite "shindo" named "tests/shindo_tests.rb" with:
|
29
44
|
"""
|
30
45
|
Shindo.tests do
|
31
46
|
returns(true) { true }
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
#
|
3
|
-
# Author:: Yukihiko
|
3
|
+
# Author:: Sawanobori Yukihiko (<sawanoboriyu@higanworks.com>)
|
4
4
|
# Author:: HIGUCHI Daisuke (<d-higuchi@creationline.com>)
|
5
5
|
#
|
6
|
-
# Copyright (C) 2014, Yukihiko
|
6
|
+
# Copyright (C) 2014, Sawanobori Yukihiko
|
7
7
|
#
|
8
8
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
9
9
|
# you may not use this file except in compliance with the License.
|
@@ -21,7 +21,7 @@ require 'busser/runner_plugin'
|
|
21
21
|
|
22
22
|
# A Busser runner plugin for Shindo.
|
23
23
|
#
|
24
|
-
# @author Yukihiko
|
24
|
+
# @author Sawanobori Yukihiko (<sawanoboriyu@higanworks.com>)
|
25
25
|
#
|
26
26
|
class Busser::RunnerPlugin::Shindo < Busser::RunnerPlugin::Base
|
27
27
|
postinstall do
|
@@ -32,7 +32,6 @@ class Busser::RunnerPlugin::Shindo < Busser::RunnerPlugin::Base
|
|
32
32
|
def test
|
33
33
|
## Refered from busser-rspec
|
34
34
|
gemfile_path = File.join(suite_path, 'shindo', 'Gemfile')
|
35
|
-
tests_path = File.join(suite_path, 'shindo', 'tests')
|
36
35
|
if File.exists?(gemfile_path)
|
37
36
|
# Bundle install local completes quickly if the gems are already found locally
|
38
37
|
# it fails if it needs to talk to the internet. The || below is the fallback
|
@@ -44,6 +43,6 @@ class Busser::RunnerPlugin::Shindo < Busser::RunnerPlugin::Base
|
|
44
43
|
end
|
45
44
|
|
46
45
|
banner('run shindont')
|
47
|
-
run!("env PATH=#{ENV['PATH']}:#{Gem.bindir} shindont
|
46
|
+
run!("cd #{suite_path('shindo')} && env PATH=#{ENV['PATH']}:#{Gem.bindir} shindont")
|
48
47
|
end
|
49
48
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
#
|
3
|
-
# Author:: Yukihiko
|
3
|
+
# Author:: Sawanobori Yukihiko (<sawanoboriyu@higanworks.com>)
|
4
4
|
# Author:: HIGUCHI Daisuke (<d-higuchi@creationline.com>)
|
5
5
|
#
|
6
|
-
# Copyright (C) 2014, Yukihiko
|
6
|
+
# Copyright (C) 2014, Sawanobori Yukihiko
|
7
7
|
#
|
8
8
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
9
9
|
# you may not use this file except in compliance with the License.
|
@@ -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.3.
|
25
|
+
VERSION = "0.3.3"
|
26
26
|
end
|
27
27
|
end
|
metadata
CHANGED