seaweed 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/seaweed +1 -1
- data/lib/seaweed.rb +3 -1
- data/lib/seaweed/runner.rb +3 -2
- data/lib/seaweed/version.rb +1 -1
- metadata +16 -16
data/bin/seaweed
CHANGED
@@ -6,7 +6,7 @@ require 'optparse'
|
|
6
6
|
|
7
7
|
options = {}
|
8
8
|
parser = OptionParser.new do |o|
|
9
|
-
o.banner = "Usage: #{$0} [options] mode\nPossible modes: server,
|
9
|
+
o.banner = "Usage: #{$0} [options] mode\nPossible modes: server, ci, auto"
|
10
10
|
|
11
11
|
options[:port] = nil
|
12
12
|
o.on '-p', '--port PORT', 'Override server port' do |port|
|
data/lib/seaweed.rb
CHANGED
@@ -101,7 +101,9 @@ module Seaweed
|
|
101
101
|
@browser = Selenium::WebDriver.for :firefox, profile: Selenium::WebDriver::Firefox::Profile.new
|
102
102
|
@browser.get "#{root_url}#terminal"
|
103
103
|
end
|
104
|
-
|
104
|
+
result = @browser[css: '.results'].text
|
105
|
+
puts result
|
106
|
+
!!result.match('passed, 0 failed')
|
105
107
|
end
|
106
108
|
|
107
109
|
def self.close_browser
|
data/lib/seaweed/runner.rb
CHANGED
@@ -15,10 +15,11 @@ module Seaweed
|
|
15
15
|
case mode
|
16
16
|
when 's', 'server'
|
17
17
|
Seaweed.start_server
|
18
|
-
when '
|
18
|
+
when 'c', 'ci'
|
19
19
|
Seaweed.spawn_server
|
20
|
-
Seaweed.run_suite
|
20
|
+
result = Seaweed.run_suite
|
21
21
|
Seaweed.close_browser
|
22
|
+
exit 1 unless result
|
22
23
|
when 'a', 'auto'
|
23
24
|
Seaweed.spawn_server
|
24
25
|
Seaweed.run_suite
|
data/lib/seaweed/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seaweed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coffee-script
|
16
|
-
requirement: &
|
16
|
+
requirement: &70111079862900 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70111079862900
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: json
|
27
|
-
requirement: &
|
27
|
+
requirement: &70111079862180 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70111079862180
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sprockets
|
38
|
-
requirement: &
|
38
|
+
requirement: &70111079861260 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70111079861260
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: sinatra
|
49
|
-
requirement: &
|
49
|
+
requirement: &70111079859880 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70111079859880
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: slim
|
60
|
-
requirement: &
|
60
|
+
requirement: &70111079859300 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70111079859300
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: selenium-webdriver
|
71
|
-
requirement: &
|
71
|
+
requirement: &70111079858480 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70111079858480
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: watchr
|
82
|
-
requirement: &
|
82
|
+
requirement: &70111079856900 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70111079856900
|
91
91
|
description: Seaweed is Coffeescript behavioral testing framework, with a command
|
92
92
|
line tool that can be used to run specs automatically.
|
93
93
|
email: me@tobiascohen.com
|