spectre-reporter-html 2.0.1 → 2.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.
- checksums.yaml +4 -4
- data/lib/spectre/reporter/html.rb +40 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33775536784a426da878d9c7397124af6cc2eef9a5e63186be7aa57b397e7de7
|
4
|
+
data.tar.gz: 787ce22af487110ddcb4d7c3aa46bf8c4fa5d51f61aa6000daf07c5d7263ba21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 211638c007001d1df12353d779224299338b5d1696623972294ce11db9a6d18b1b18b49fce3d4227b335e73237cee5a6a2138f233f8c397ebef6c359debf4801
|
7
|
+
data.tar.gz: 6a657b91882d75c80372d36f64b66c3e846133e8696133db6b45a8031b5248f5fbb4c669c11cf03f4122b4f08bd62672ccedb4c69665dbe6c25c380047b56f8d
|
@@ -115,7 +115,11 @@ module Spectre
|
|
115
115
|
end,
|
116
116
|
error:,
|
117
117
|
# the <script> element has to be escaped in any string, as it causes the inline JavaScript to break
|
118
|
-
log: run_info.logs.map
|
118
|
+
log: run_info.logs.map do |entry|
|
119
|
+
entry[-1].gsub!(/[^[:print:]\n]/, '<np>')
|
120
|
+
entry[-1].gsub!(%r{<(/*script)}, '<`\1')
|
121
|
+
entry
|
122
|
+
end,
|
119
123
|
}
|
120
124
|
end,
|
121
125
|
config: @config.obfuscate!,
|
@@ -671,7 +675,7 @@ module Spectre
|
|
671
675
|
border-color: #83bd11;
|
672
676
|
}
|
673
677
|
|
674
|
-
.spectre-log-
|
678
|
+
.spectre-log-entry.info .spectre-log-level {
|
675
679
|
color: #9ddf1c;
|
676
680
|
}
|
677
681
|
|
@@ -712,7 +716,7 @@ module Spectre
|
|
712
716
|
border-color: #bb084a;
|
713
717
|
}
|
714
718
|
|
715
|
-
.spectre-log-
|
719
|
+
.spectre-log-entry.error .spectre-log-level {
|
716
720
|
color: #e61160;
|
717
721
|
}
|
718
722
|
|
@@ -753,10 +757,14 @@ module Spectre
|
|
753
757
|
border-color: #e7ca00;
|
754
758
|
}
|
755
759
|
|
756
|
-
.spectre-log-
|
760
|
+
.spectre-log-entry.warn .spectre-log-level {
|
757
761
|
color: #f5d915;
|
758
762
|
}
|
759
763
|
|
764
|
+
.spectre-log-entry.warn .spectre-log-message {
|
765
|
+
color: #e61160;
|
766
|
+
}
|
767
|
+
|
760
768
|
/* spectre-status colors SKIPPED */
|
761
769
|
|
762
770
|
.spectre-runinfo.spectre-status-skipped .spectre-details-status,
|
@@ -766,7 +774,7 @@ module Spectre
|
|
766
774
|
border-color: #c1d5d9;
|
767
775
|
}
|
768
776
|
|
769
|
-
.spectre-log-
|
777
|
+
.spectre-log-entry.debug .spectre-log-level {
|
770
778
|
color: #c1d5d9;
|
771
779
|
}
|
772
780
|
|
@@ -776,27 +784,39 @@ module Spectre
|
|
776
784
|
font-family: monospace;
|
777
785
|
font-size: 0.8rem;
|
778
786
|
list-style: none;
|
787
|
+
display: table;
|
779
788
|
padding: 0rem;
|
780
789
|
margin: 0rem;
|
781
790
|
}
|
782
791
|
|
783
792
|
.spectre-log-entry {
|
784
|
-
display:
|
793
|
+
display: table-row;
|
785
794
|
font-family: monospace;
|
786
795
|
white-space: pre;
|
787
796
|
}
|
788
797
|
|
798
|
+
.spectre-log-timestamp,
|
799
|
+
.spectre-log-level,
|
800
|
+
.spectre-log-name,
|
801
|
+
.spectre-log-correlation-id,
|
802
|
+
.spectre-log-message {
|
803
|
+
display: table-cell;
|
804
|
+
padding-left: 0.5em;
|
805
|
+
}
|
806
|
+
|
789
807
|
.spectre-log-timestamp {
|
790
808
|
font-style: italic;
|
791
809
|
color: rgba(0, 0, 0, 0.5);
|
792
810
|
}
|
793
811
|
|
794
812
|
.spectre-log-timestamp:before {
|
813
|
+
font-style: normal;
|
795
814
|
content: '[';
|
796
815
|
color: #000;
|
797
816
|
}
|
798
817
|
|
799
818
|
.spectre-log-timestamp:after {
|
819
|
+
font-style: normal;
|
800
820
|
content: ']';
|
801
821
|
color: #000;
|
802
822
|
}
|
@@ -804,6 +824,18 @@ module Spectre
|
|
804
824
|
.spectre-log-level {
|
805
825
|
text-transform: uppercase;
|
806
826
|
}
|
827
|
+
|
828
|
+
.spectre-log-name {
|
829
|
+
text-align: right;
|
830
|
+
}
|
831
|
+
|
832
|
+
.spectre-log-correlation-id {
|
833
|
+
color: rgba(0, 0, 0, 0.3);
|
834
|
+
}
|
835
|
+
|
836
|
+
.spectre-log-message {
|
837
|
+
white-space: pre-wrap;
|
838
|
+
}
|
807
839
|
</style>
|
808
840
|
</head>
|
809
841
|
<body>
|
@@ -960,8 +992,8 @@ module Spectre
|
|
960
992
|
<legend class="spectre-toggle" @click="toggleLog(runInfo)">Log</legend>
|
961
993
|
|
962
994
|
<ul class="spectre-log" v-if="shownLogs.includes(runInfo)">
|
963
|
-
<li v-for="logEntry in runInfo.log" class="spectre-log-entry">
|
964
|
-
<span class="spectre-log-timestamp">{{ logEntry[0] }}</span> <span class="spectre-log-level"
|
995
|
+
<li v-for="logEntry in runInfo.log" :class="logEntry[1].toLowerCase()" class="spectre-log-entry">
|
996
|
+
<span class="spectre-log-timestamp">{{ logEntry[0] }}</span> <span class="spectre-log-level">{{ logEntry[1] }}</span> --<span class="spectre-log-name">{{ logEntry[2] }}</span>:<span class="spectre-log-correlation-id">{{ logEntry[3] }}</span><span class="spectre-log-message">{{ logEntry[4] }}</span>
|
965
997
|
</li>
|
966
998
|
</ul>
|
967
999
|
</fieldset>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectre-reporter-html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Neubauer
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-26 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: base64
|