cucumber-relizy 0.0.1 → 0.0.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/.gitignore +0 -1
- data/CHANGELOG.md +4 -0
- data/README.md +10 -1
- data/doc/cucumber-relizy.jpg +0 -0
- data/doc/cucumber.jpg +0 -0
- data/lib/cucumber/relizy/assets/cucumber-relizy.css +18 -0
- data/lib/cucumber/relizy/assets/cucumber-relizy.js.coffee +13 -1
- data/lib/cucumber/relizy/cli.rb +1 -1
- data/lib/cucumber/relizy/version.rb +1 -1
- metadata +12 -8
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
# Cucumber::Relizy
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This app will enhance your Cucumber html output with features navigation.
|
|
4
|
+
Improve usability on browsing features for any stakeholders.
|
|
5
|
+
|
|
6
|
+
Before:
|
|
7
|
+
|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
After:
|
|
11
|
+

|
|
12
|
+
|
|
4
13
|
|
|
5
14
|
## Installation
|
|
6
15
|
|
|
Binary file
|
data/doc/cucumber.jpg
ADDED
|
Binary file
|
|
@@ -18,3 +18,21 @@
|
|
|
18
18
|
#relizy-sidebar ul#root ul {
|
|
19
19
|
padding-left: 15px;
|
|
20
20
|
}
|
|
21
|
+
|
|
22
|
+
#relizy-sidebar ul#root li {
|
|
23
|
+
list-style: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
#relizy-sidebar ul#root li.pass {
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
#relizy-sidebar ul#root li.failed {
|
|
30
|
+
list-style: disc;
|
|
31
|
+
color: rgb(196, 13, 13);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
#relizy-sidebar ul#root li.pending {
|
|
35
|
+
list-style: disc;
|
|
36
|
+
color: #FAA732;
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -13,6 +13,17 @@ class Feature
|
|
|
13
13
|
# remove feature name
|
|
14
14
|
@path.pop()
|
|
15
15
|
|
|
16
|
+
# steps status
|
|
17
|
+
@status = if $('li.step.failed', el).length > 0
|
|
18
|
+
'failed'
|
|
19
|
+
else if $('li.step.undefined', el).length > 0
|
|
20
|
+
'failed'
|
|
21
|
+
else if $('li.step.pending', el).length > 0
|
|
22
|
+
'pending'
|
|
23
|
+
else
|
|
24
|
+
'pass'
|
|
25
|
+
|
|
26
|
+
|
|
16
27
|
jQuery ($) ->
|
|
17
28
|
@active = null
|
|
18
29
|
|
|
@@ -41,7 +52,8 @@ jQuery ($) ->
|
|
|
41
52
|
$('<li>' + folder + '<ul rel="' + folder + '"></ul></li>').appendTo($(parent))
|
|
42
53
|
parent = $('ul[rel="'+folder+'"]', parent)
|
|
43
54
|
|
|
44
|
-
li = $(
|
|
55
|
+
li = $("<li class='#{ feature.status }'><a href='#'>#{ feature.name }</a></li>").
|
|
56
|
+
appendTo $(parent)
|
|
45
57
|
# console.log li
|
|
46
58
|
$(li).children('a:first').data('feature', feature)
|
|
47
59
|
|
data/lib/cucumber/relizy/cli.rb
CHANGED
|
@@ -12,7 +12,7 @@ module Cucumber
|
|
|
12
12
|
|
|
13
13
|
script = File.expand_path('../assets/cucumber-relizy.css', __FILE__)
|
|
14
14
|
script = File.read(script)
|
|
15
|
-
a = doc.css("
|
|
15
|
+
a = doc.css("body").first
|
|
16
16
|
a.add_child("<style type='text/css'>\n#{ script }\n</style>")
|
|
17
17
|
|
|
18
18
|
script = File.expand_path('../assets/cucumber-relizy.js.coffee', __FILE__)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cucumber-relizy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
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: 2012-03-
|
|
12
|
+
date: 2012-03-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: coffee-script
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &2153676820 !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: *2153676820
|
|
25
25
|
- !ruby/object:Gem::Dependency
|
|
26
26
|
name: nokogiri
|
|
27
|
-
requirement: &
|
|
27
|
+
requirement: &2153659960 !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: *2153659960
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: rake
|
|
38
|
-
requirement: &
|
|
38
|
+
requirement: &2153659360 !ruby/object:Gem::Requirement
|
|
39
39
|
none: false
|
|
40
40
|
requirements:
|
|
41
41
|
- - ! '>='
|
|
@@ -43,7 +43,7 @@ dependencies:
|
|
|
43
43
|
version: '0'
|
|
44
44
|
type: :development
|
|
45
45
|
prerelease: false
|
|
46
|
-
version_requirements: *
|
|
46
|
+
version_requirements: *2153659360
|
|
47
47
|
description: Patch your cucumber html output with features navigation
|
|
48
48
|
email:
|
|
49
49
|
- wynst.uei@gmail.com
|
|
@@ -53,12 +53,15 @@ extensions: []
|
|
|
53
53
|
extra_rdoc_files: []
|
|
54
54
|
files:
|
|
55
55
|
- .gitignore
|
|
56
|
+
- CHANGELOG.md
|
|
56
57
|
- Gemfile
|
|
57
58
|
- LICENSE
|
|
58
59
|
- README.md
|
|
59
60
|
- Rakefile
|
|
60
61
|
- bin/cucumber-relizy
|
|
61
62
|
- cucumber-relizy.gemspec
|
|
63
|
+
- doc/cucumber-relizy.jpg
|
|
64
|
+
- doc/cucumber.jpg
|
|
62
65
|
- lib/cucumber/relizy/assets/cucumber-relizy.css
|
|
63
66
|
- lib/cucumber/relizy/assets/cucumber-relizy.js.coffee
|
|
64
67
|
- lib/cucumber/relizy/cli.rb
|
|
@@ -88,3 +91,4 @@ signing_key:
|
|
|
88
91
|
specification_version: 3
|
|
89
92
|
summary: Patch your cucumber html output with features navigation
|
|
90
93
|
test_files: []
|
|
94
|
+
has_rdoc:
|