cuporter 0.2.1 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -56,7 +56,7 @@ namespace :cuporter do
|
|
56
56
|
|
57
57
|
spec = Gem::Specification.new do |s|
|
58
58
|
s.name = 'cuporter'
|
59
|
-
s.version = '0.2.
|
59
|
+
s.version = '0.2.4'
|
60
60
|
s.rubyforge_project = s.name
|
61
61
|
|
62
62
|
s.platform = Gem::Platform::RUBY
|
@@ -73,7 +73,7 @@ namespace :cuporter do
|
|
73
73
|
s.executables = [s.default_executable]
|
74
74
|
|
75
75
|
s.files = %w(LICENSE README.textile Rakefile) +
|
76
|
-
FileList["lib/**/*.rb", "spec/**/*.rb", "features/**/*.{feature,rb}", "bin/*"].to_a
|
76
|
+
FileList["lib/**/*.{rb,css}", "spec/**/*.rb", "features/**/*.{feature,rb}", "bin/*"].to_a
|
77
77
|
|
78
78
|
s.require_path = "lib"
|
79
79
|
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
body {
|
2
|
+
margin: 0;
|
3
|
+
padding: 0;
|
4
|
+
font: normal 11px "Lucida Grande", Helvetica, sans-serif
|
5
|
+
}
|
6
|
+
.cuporter_header {
|
7
|
+
padding-left: 2em;
|
8
|
+
padding-bottom: 0.3em;
|
9
|
+
padding-top: 0.05em;
|
10
|
+
height: 6em;
|
11
|
+
background-color: #24A6C1;
|
12
|
+
color: white;
|
13
|
+
}
|
14
|
+
|
15
|
+
ul {
|
16
|
+
list-style-type: none;
|
17
|
+
}
|
18
|
+
.tag_list {
|
19
|
+
padding-left: 0.5em;
|
20
|
+
}
|
21
|
+
.tag_name {
|
22
|
+
height: 2em;
|
23
|
+
font-weight: bold;
|
24
|
+
font-size: 1.5em;
|
25
|
+
}
|
26
|
+
.tag {
|
27
|
+
margin-bottom: 1em;
|
28
|
+
}
|
29
|
+
|
30
|
+
.feature {
|
31
|
+
margin-bottom: 0.5em;
|
32
|
+
margin-right: 1em;
|
33
|
+
}
|
34
|
+
.feature_name {
|
35
|
+
margin-left: -2em;
|
36
|
+
padding-left: 2em;
|
37
|
+
padding-top: 0.1em;
|
38
|
+
padding-bottom: 0.1em;
|
39
|
+
font-weight: bold;
|
40
|
+
background-color: #24A6C1;
|
41
|
+
color: white;
|
42
|
+
}
|
43
|
+
.example_rows {
|
44
|
+
background-color: lightblue;
|
45
|
+
margin-left: -7.2em;
|
46
|
+
padding-left: 7.2em;
|
47
|
+
}
|
48
|
+
|
49
|
+
.example_set_name {
|
50
|
+
margin-left: -2em;
|
51
|
+
}
|
52
|
+
.example {
|
53
|
+
background-color: #26A6C0;
|
54
|
+
}
|
55
|
+
|
56
|
+
.example td.val {
|
57
|
+
padding-left: 0.5em;
|
58
|
+
}
|
59
|
+
.scenario_name {
|
60
|
+
margin-left: -3.8em;
|
61
|
+
padding-left: 3.8em;
|
62
|
+
background-color: lightblue;
|
63
|
+
|
64
|
+
}
|
65
|
+
|
66
|
+
.number {
|
67
|
+
position: absolute;
|
68
|
+
left: 4.5em;
|
69
|
+
font-weight: bold;
|
70
|
+
}
|
71
|
+
|
@@ -48,6 +48,31 @@ module Cuporter
|
|
48
48
|
|
49
49
|
end
|
50
50
|
|
51
|
+
context "#parse" do
|
52
|
+
context "table which is not an example set" do
|
53
|
+
it "does not raise an error" do
|
54
|
+
content = <<EOF
|
55
|
+
|
56
|
+
Feature: table not examples
|
57
|
+
|
58
|
+
Scenario: no examples under here
|
59
|
+
Given foo
|
60
|
+
When bar
|
61
|
+
Then wow:
|
62
|
+
| All |
|
63
|
+
| Some |
|
64
|
+
| Any |
|
65
|
+
| Few |
|
66
|
+
| Most |
|
67
|
+
EOF
|
68
|
+
|
69
|
+
expect do
|
70
|
+
FeatureParser.parse(content)
|
71
|
+
end.to_not raise_error
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
51
76
|
end
|
52
77
|
end
|
53
78
|
|
@@ -5,11 +5,22 @@ module Cuporter
|
|
5
5
|
describe "Single Feature Tag Reports" do
|
6
6
|
|
7
7
|
context "empty feature file" do
|
8
|
+
let(:stderr_file) {"stderr.out.txt"}
|
9
|
+
|
10
|
+
before do
|
11
|
+
File.delete(stderr_file) if File.exist?(stderr_file)
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
File.delete(stderr_file) if File.exist?(stderr_file)
|
16
|
+
end
|
17
|
+
|
8
18
|
it "returns empty string and should not raise an error" do
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
19
|
+
File.delete(stderr_file) if File.exist?(stderr_file)
|
20
|
+
report = one_feature( "fixtures/empty_file.feature 2> #{stderr_file}")
|
21
|
+
err = File.read(stderr_file)
|
22
|
+
err.should be_empty, err
|
23
|
+
report.should be_empty
|
13
24
|
end
|
14
25
|
end
|
15
26
|
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 31
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
9
|
+
- 4
|
10
|
+
version: 0.2.4
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Tim Camper
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-08 00:00:00 -04:00
|
18
19
|
default_executable: cuporter
|
19
20
|
dependencies: []
|
20
21
|
|
@@ -46,6 +47,7 @@ files:
|
|
46
47
|
- lib/cuporter/node_numberer.rb
|
47
48
|
- lib/cuporter/tag_report.rb
|
48
49
|
- lib/cuporter.rb
|
50
|
+
- lib/cuporter/formatters/cuporter.css
|
49
51
|
- spec/cuporter/node_spec.rb
|
50
52
|
- spec/cuporter/sort_node_spec.rb
|
51
53
|
- spec/cuporter/feature_parser_spec.rb
|
@@ -77,25 +79,29 @@ rdoc_options:
|
|
77
79
|
require_paths:
|
78
80
|
- lib
|
79
81
|
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
80
83
|
requirements:
|
81
84
|
- - ">="
|
82
85
|
- !ruby/object:Gem::Version
|
86
|
+
hash: 57
|
83
87
|
segments:
|
84
88
|
- 1
|
85
89
|
- 8
|
86
90
|
- 7
|
87
91
|
version: 1.8.7
|
88
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
89
94
|
requirements:
|
90
95
|
- - ">="
|
91
96
|
- !ruby/object:Gem::Version
|
97
|
+
hash: 3
|
92
98
|
segments:
|
93
99
|
- 0
|
94
100
|
version: "0"
|
95
101
|
requirements: []
|
96
102
|
|
97
103
|
rubyforge_project: cuporter
|
98
|
-
rubygems_version: 1.3.
|
104
|
+
rubygems_version: 1.3.7
|
99
105
|
signing_key:
|
100
106
|
specification_version: 3
|
101
107
|
summary: Scrapes Cucumber *.feature files to build report on tag usage
|