rspec-nice-html-formatter 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/template.html.erb +37 -7
- data/rspec-nice-html-formatter.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e57a985d6af3481d0f6360115775e5a4fd0d109
|
4
|
+
data.tar.gz: 2756258e261d20a0a88ad202d8d26e411e069939
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5d42ed9004e847cbcbebdfac94b080bb2f5f92bc6ce8fe3cd05945077ce3cc8567b700bcd5362604900cb06dceccebfca9db46a22bae94e8f450fa2e098d192
|
7
|
+
data.tar.gz: f514ef1db18d4ed5742beec6e3fbd14bb910564d0bdbd876891bc14be7c70ffe35e7d6859402e1f956bd303f74a69f0b9fa3c6f33793687ce440406ab52b80a4
|
data/Gemfile.lock
CHANGED
data/lib/template.html.erb
CHANGED
@@ -72,6 +72,27 @@
|
|
72
72
|
opacity: 0;
|
73
73
|
}
|
74
74
|
|
75
|
+
.callstack {
|
76
|
+
display: none;
|
77
|
+
}
|
78
|
+
|
79
|
+
.expander {
|
80
|
+
cursor: pointer;
|
81
|
+
padding-left: 3px;
|
82
|
+
}
|
83
|
+
|
84
|
+
.backtrace .expander::after {
|
85
|
+
content: "▶️";
|
86
|
+
}
|
87
|
+
|
88
|
+
.backtrace.long .expander::after {
|
89
|
+
content: "🔽";
|
90
|
+
}
|
91
|
+
|
92
|
+
.backtrace.long .callstack {
|
93
|
+
display: block;
|
94
|
+
}
|
95
|
+
|
75
96
|
#summary {
|
76
97
|
opacity: 0.5;
|
77
98
|
margin-bottom: 20px;
|
@@ -98,13 +119,15 @@
|
|
98
119
|
<span class="path">
|
99
120
|
bundle exec rspec <%= h failure.example.rerun_argument%>
|
100
121
|
</span>
|
101
|
-
<ol class="backtrace">
|
102
|
-
<li class="exception"><%= failure.exception
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
122
|
+
<ol class="backtrace short">
|
123
|
+
<li class="exception"><%= failure.exception %> <span class="expander"></span></li>
|
124
|
+
<div class="callstack">
|
125
|
+
<% failure.formatted_backtrace.each do |line| %>
|
126
|
+
<li>
|
127
|
+
<%= h line %>
|
128
|
+
</li>
|
129
|
+
<% end %>
|
130
|
+
</div>
|
108
131
|
</ol>
|
109
132
|
</li>
|
110
133
|
<% end %>
|
@@ -147,6 +170,13 @@
|
|
147
170
|
copy(document.querySelector("#copy-all"));
|
148
171
|
});
|
149
172
|
});
|
173
|
+
|
174
|
+
document.querySelectorAll(".backtrace .expander").forEach(function(node) {
|
175
|
+
node.addEventListener("click", function() {
|
176
|
+
var backtrace = node.parentNode.parentNode;
|
177
|
+
backtrace.classList.toggle("long");
|
178
|
+
});
|
179
|
+
});
|
150
180
|
</script>
|
151
181
|
</body>
|
152
182
|
</html>
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = "rspec-nice-html-formatter"
|
6
|
-
spec.version = "1.0.
|
6
|
+
spec.version = "1.0.2"
|
7
7
|
spec.authors = ["ecin"]
|
8
8
|
spec.email = ["ecin@copypastel.com"]
|
9
9
|
spec.description = "A nice HTML formatter for your RSpec tests 🌈"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-nice-html-formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ecin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
61
|
rubyforge_project:
|
62
|
-
rubygems_version: 2.6.
|
62
|
+
rubygems_version: 2.6.14
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: Output your RSpec test results to a pretty HTML page for all to enjoy.
|