ciserver_formatter 0.0.2 → 0.0.3
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 +1 -0
- data/Gemfile.lock +1 -1
- data/lib/ciserver_formatter/ciserver_formatter.rb +9 -4
- data/lib/ciserver_formatter/version.rb +1 -1
- metadata +1 -2
- data/pkg/ciserver_formatter-0.0.1.gem +0 -0
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -41,11 +41,16 @@ module CiserverFormatter
|
|
41
41
|
|
42
42
|
def example_started(example)
|
43
43
|
super
|
44
|
+
@start_time = Time.now
|
45
|
+
end
|
46
|
+
|
47
|
+
def write_output(description, status)
|
48
|
+
output.puts "#{current_indentation}<span class=\"status\">#{description}<span class=\"time\">#{Time.now - @start_time}</span></span><br />"
|
44
49
|
end
|
45
50
|
|
46
51
|
def example_pending(example)
|
47
52
|
super
|
48
|
-
|
53
|
+
write_output example.description, :pending
|
49
54
|
@status = :pending if @status == :pass
|
50
55
|
@pending_count += 1
|
51
56
|
update_progress
|
@@ -53,7 +58,7 @@ module CiserverFormatter
|
|
53
58
|
|
54
59
|
def example_failed(example)
|
55
60
|
super
|
56
|
-
|
61
|
+
write_output example.description, :failed
|
57
62
|
@status = :failed
|
58
63
|
@failed_count += 1
|
59
64
|
update_progress
|
@@ -61,7 +66,7 @@ module CiserverFormatter
|
|
61
66
|
|
62
67
|
def example_passed(example)
|
63
68
|
super
|
64
|
-
|
69
|
+
write_output example.description, :passed
|
65
70
|
@passed_count += 1
|
66
71
|
update_progress
|
67
72
|
end
|
@@ -76,7 +81,7 @@ module CiserverFormatter
|
|
76
81
|
|
77
82
|
private
|
78
83
|
def current_indentation
|
79
|
-
'
|
84
|
+
'&nsbp;' * @group_level
|
80
85
|
end
|
81
86
|
|
82
87
|
def total_count
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ciserver_formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -47,7 +47,6 @@ files:
|
|
47
47
|
- lib/ciserver_formatter/progress_reporter.rb
|
48
48
|
- lib/ciserver_formatter/status_reporter.rb
|
49
49
|
- lib/ciserver_formatter/version.rb
|
50
|
-
- pkg/ciserver_formatter-0.0.1.gem
|
51
50
|
- spec/ciserver_formatter/ciserver_formatter_spec.rb
|
52
51
|
- spec/ciserver_formatter/progress_reporter_spec.rb
|
53
52
|
- spec/ciserver_formatter/status_reporter_spec.rb
|
Binary file
|