allure-commandline 2.13.8 → 2.13.9

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.
Files changed (95) hide show
  1. package/LICENSE +201 -0
  2. package/package.json +3 -2
  3. package/dist/bin/allure +0 -188
  4. package/dist/bin/allure.bat +0 -100
  5. package/dist/config/allure-cucumber.yml +0 -0
  6. package/dist/config/allure-junit.yml +0 -3
  7. package/dist/config/allure.yml +0 -10
  8. package/dist/lib/allure-commandline-2.13.8.jar +0 -0
  9. package/dist/lib/allure-generator-2.13.8.jar +0 -0
  10. package/dist/lib/allure-model-2.13.0.jar +0 -0
  11. package/dist/lib/allure-plugin-api-2.13.8.jar +0 -0
  12. package/dist/lib/allure1-model-1.0.jar +0 -0
  13. package/dist/lib/commons-beanutils-1.9.3.jar +0 -0
  14. package/dist/lib/commons-codec-1.11.jar +0 -0
  15. package/dist/lib/commons-collections-3.2.2.jar +0 -0
  16. package/dist/lib/commons-collections4-4.2.jar +0 -0
  17. package/dist/lib/commons-io-2.6.jar +0 -0
  18. package/dist/lib/commons-lang3-3.9.jar +0 -0
  19. package/dist/lib/commons-logging-1.2.jar +0 -0
  20. package/dist/lib/commons-text-1.3.jar +0 -0
  21. package/dist/lib/config/jetty-logging.properties +0 -2
  22. package/dist/lib/config/log4j.properties +0 -8
  23. package/dist/lib/flexmark-0.50.36.jar +0 -0
  24. package/dist/lib/flexmark-util-0.50.36.jar +0 -0
  25. package/dist/lib/freemarker-2.3.29.jar +0 -0
  26. package/dist/lib/httpclient-4.5.9.jar +0 -0
  27. package/dist/lib/httpcore-4.4.11.jar +0 -0
  28. package/dist/lib/jackson-annotations-2.9.0.jar +0 -0
  29. package/dist/lib/jackson-core-2.9.8.jar +0 -0
  30. package/dist/lib/jackson-databind-2.9.8.jar +0 -0
  31. package/dist/lib/jackson-dataformat-xml-2.9.8.jar +0 -0
  32. package/dist/lib/jackson-dataformat-yaml-2.9.8.jar +0 -0
  33. package/dist/lib/jackson-module-jaxb-annotations-2.9.8.jar +0 -0
  34. package/dist/lib/javax.activation-api-1.2.0.jar +0 -0
  35. package/dist/lib/javax.servlet-api-3.1.0.jar +0 -0
  36. package/dist/lib/jaxb-api-2.3.1.jar +0 -0
  37. package/dist/lib/jaxb-utils-1.0.jar +0 -0
  38. package/dist/lib/jcommander-1.78.jar +0 -0
  39. package/dist/lib/jetty-http-9.4.20.v20190813.jar +0 -0
  40. package/dist/lib/jetty-io-9.4.20.v20190813.jar +0 -0
  41. package/dist/lib/jetty-server-9.4.20.v20190813.jar +0 -0
  42. package/dist/lib/jetty-util-9.4.20.v20190813.jar +0 -0
  43. package/dist/lib/log4j-1.2.17.jar +0 -0
  44. package/dist/lib/opencsv-4.6.jar +0 -0
  45. package/dist/lib/properties-2.0.RC5.jar +0 -0
  46. package/dist/lib/slf4j-api-1.7.28.jar +0 -0
  47. package/dist/lib/slf4j-log4j12-1.7.28.jar +0 -0
  48. package/dist/lib/snakeyaml-1.23.jar +0 -0
  49. package/dist/lib/stax2-api-3.1.4.jar +0 -0
  50. package/dist/lib/tika-core-1.22.jar +0 -0
  51. package/dist/lib/woodstox-core-5.0.3.jar +0 -0
  52. package/dist/plugins/README.txt +0 -1
  53. package/dist/plugins/behaviors-plugin/allure-plugin.yml +0 -7
  54. package/dist/plugins/behaviors-plugin/behaviors-plugin-2.13.8.jar +0 -0
  55. package/dist/plugins/behaviors-plugin/static/index.js +0 -178
  56. package/dist/plugins/custom-logo-plugin/allure-plugin.yml +0 -5
  57. package/dist/plugins/custom-logo-plugin/custom-logo-plugin-2.13.8.jar +0 -0
  58. package/dist/plugins/custom-logo-plugin/static/custom-logo.svg +0 -1
  59. package/dist/plugins/custom-logo-plugin/static/styles.css +0 -4
  60. package/dist/plugins/jira-plugin/allure-plugin.yml +0 -5
  61. package/dist/plugins/jira-plugin/jira-plugin-2.13.8.jar +0 -0
  62. package/dist/plugins/jira-plugin/lib/allure-jira-commons-2.13.8.jar +0 -0
  63. package/dist/plugins/jira-plugin/lib/converter-jackson-2.6.1.jar +0 -0
  64. package/dist/plugins/jira-plugin/lib/jackson-annotations-2.9.0.jar +0 -0
  65. package/dist/plugins/jira-plugin/lib/jackson-core-2.9.8.jar +0 -0
  66. package/dist/plugins/jira-plugin/lib/jackson-databind-2.9.8.jar +0 -0
  67. package/dist/plugins/jira-plugin/lib/okhttp-3.12.0.jar +0 -0
  68. package/dist/plugins/jira-plugin/lib/okio-1.15.0.jar +0 -0
  69. package/dist/plugins/jira-plugin/lib/retrofit-2.6.1.jar +0 -0
  70. package/dist/plugins/junit-xml-plugin/allure-plugin.yml +0 -5
  71. package/dist/plugins/junit-xml-plugin/junit-xml-plugin-2.13.8.jar +0 -0
  72. package/dist/plugins/packages-plugin/allure-plugin.yml +0 -7
  73. package/dist/plugins/packages-plugin/packages-plugin-2.13.8.jar +0 -0
  74. package/dist/plugins/packages-plugin/static/index.js +0 -104
  75. package/dist/plugins/screen-diff-plugin/allure-plugin.yml +0 -7
  76. package/dist/plugins/screen-diff-plugin/screen-diff-plugin-2.13.8.jar +0 -0
  77. package/dist/plugins/screen-diff-plugin/static/index.js +0 -200
  78. package/dist/plugins/screen-diff-plugin/static/styles.css +0 -30
  79. package/dist/plugins/trx-plugin/allure-plugin.yml +0 -5
  80. package/dist/plugins/trx-plugin/trx-plugin-2.13.8.jar +0 -0
  81. package/dist/plugins/xctest-plugin/allure-plugin.yml +0 -5
  82. package/dist/plugins/xctest-plugin/lib/xmlwise-1.2.11.jar +0 -0
  83. package/dist/plugins/xctest-plugin/xctest-plugin-2.13.8.jar +0 -0
  84. package/dist/plugins/xray-plugin/allure-plugin.yml +0 -5
  85. package/dist/plugins/xray-plugin/lib/allure-jira-commons-2.13.8.jar +0 -0
  86. package/dist/plugins/xray-plugin/lib/converter-jackson-2.6.1.jar +0 -0
  87. package/dist/plugins/xray-plugin/lib/jackson-annotations-2.9.0.jar +0 -0
  88. package/dist/plugins/xray-plugin/lib/jackson-core-2.9.8.jar +0 -0
  89. package/dist/plugins/xray-plugin/lib/jackson-databind-2.9.8.jar +0 -0
  90. package/dist/plugins/xray-plugin/lib/okhttp-3.12.0.jar +0 -0
  91. package/dist/plugins/xray-plugin/lib/okio-1.15.0.jar +0 -0
  92. package/dist/plugins/xray-plugin/lib/retrofit-2.6.1.jar +0 -0
  93. package/dist/plugins/xray-plugin/xray-plugin-2.13.8.jar +0 -0
  94. package/dist/plugins/xunit-xml-plugin/allure-plugin.yml +0 -5
  95. package/dist/plugins/xunit-xml-plugin/xunit-xml-plugin-2.13.8.jar +0 -0
@@ -1,7 +0,0 @@
1
- id: behaviors
2
- name: Behaviors aggregator
3
- description: The aggregator adds behaviors tab to the report
4
- extensions:
5
- - io.qameta.allure.behaviors.BehaviorsPlugin
6
- jsFiles:
7
- - index.js
@@ -1,178 +0,0 @@
1
- 'use strict';
2
-
3
- allure.api.addTranslation('en', {
4
- tab: {
5
- behaviors: {
6
- name: 'Behaviors'
7
- }
8
- },
9
- widget: {
10
- behaviors: {
11
- name: 'Features by stories',
12
- showAll: 'show all'
13
- }
14
- }
15
- });
16
-
17
- allure.api.addTranslation('ru', {
18
- tab: {
19
- behaviors: {
20
- name: 'Функциональность'
21
- }
22
- },
23
- widget: {
24
- behaviors: {
25
- name: 'Функциональность',
26
- showAll: 'показать все'
27
- }
28
- }
29
- });
30
-
31
- allure.api.addTranslation('zh', {
32
- tab: {
33
- behaviors: {
34
- name: '功能'
35
- }
36
- },
37
- widget: {
38
- behaviors: {
39
- name: '特性场景',
40
- showAll: '显示所有'
41
- }
42
- }
43
- });
44
-
45
- allure.api.addTranslation('de', {
46
- tab: {
47
- behaviors: {
48
- name: 'Verhalten'
49
- }
50
- },
51
- widget: {
52
- behaviors: {
53
- name: 'Features nach Stories',
54
- showAll: 'Zeige alle'
55
- }
56
- }
57
- });
58
-
59
- allure.api.addTranslation('nl', {
60
- tab: {
61
- behaviors: {
62
- name: 'Functionaliteit'
63
- }
64
- },
65
- widget: {
66
- behaviors: {
67
- name: 'Features en story’s',
68
- showAll: 'Toon alle'
69
- }
70
- }
71
- });
72
-
73
- allure.api.addTranslation('he', {
74
- tab: {
75
- behaviors: {
76
- name: 'התנהגויות'
77
- }
78
- },
79
- widget: {
80
- behaviors: {
81
- name: 'תכונות לפי סיפורי משתמש',
82
- showAll: 'הצג הכול'
83
- }
84
- }
85
- });
86
-
87
- allure.api.addTranslation('br', {
88
- tab: {
89
- behaviors: {
90
- name: 'Comportamentos'
91
- }
92
- },
93
- widget: {
94
- behaviors: {
95
- name: 'Funcionalidades por história',
96
- showAll: 'Mostrar tudo'
97
- }
98
- }
99
- });
100
-
101
- allure.api.addTranslation('ja', {
102
- tab: {
103
- behaviors: {
104
- name: '振る舞い'
105
- }
106
- },
107
- widget: {
108
- behaviors: {
109
- name: 'ストーリー別の機能',
110
- showAll: '全て表示'
111
- }
112
- }
113
- });
114
-
115
- allure.api.addTranslation('es', {
116
- tab: {
117
- behaviors: {
118
- name: 'Funcionalidades'
119
- }
120
- },
121
- widget: {
122
- behaviors: {
123
- name: 'Funcionalidades por Historias de Usuario',
124
- showAll: 'mostrar todo'
125
- }
126
- }
127
- });
128
-
129
- allure.api.addTranslation('kr', {
130
- tab: {
131
- behaviors: {
132
- name: '동작'
133
- }
134
- },
135
- widget: {
136
- behaviors: {
137
- name: '스토리별 기능',
138
- showAll: '전체 보기'
139
- }
140
- }
141
- });
142
-
143
- allure.api.addTranslation('fr', {
144
- tab: {
145
- behaviors: {
146
- name: 'Comportements'
147
- }
148
- },
149
- widget: {
150
- behaviors: {
151
- name: 'Thèmes par histoires',
152
- showAll: 'Montrer tout'
153
- }
154
- }
155
- });
156
-
157
- allure.api.addTab('behaviors', {
158
- title: 'tab.behaviors.name', icon: 'fa fa-list',
159
- route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
160
- onEnter: (function (testGroup, testResult, testResultTab) {
161
- return new allure.components.TreeLayout({
162
- testGroup: testGroup,
163
- testResult: testResult,
164
- testResultTab: testResultTab,
165
- tabName: 'tab.behaviors.name',
166
- baseUrl: 'behaviors',
167
- url: 'data/behaviors.json',
168
- csvUrl: 'data/behaviors.csv'
169
- });
170
- })
171
- });
172
-
173
- allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({
174
- rowTag: 'a',
175
- title: 'widget.behaviors.name',
176
- baseUrl: 'behaviors',
177
- showLinks: true
178
- }));
@@ -1,5 +0,0 @@
1
- id: custom-logo
2
- name: Custom logo aggregator
3
- description: The aggregator replaces default Allure logo with a custom one
4
- cssFiles:
5
- - styles.css
@@ -1 +0,0 @@
1
- <?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 128 128" version="1.1" viewBox="0 0 128 128" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Layer_1"><rect fill="#F4F5F5" height="1520" opacity="0" width="727.938" x="-59.984" y="-351"/></g><g id="Layer_2"><g><circle cx="64" cy="64" fill="#6E9583" r="64"/><g><defs><circle cx="64" cy="64" id="SVGID_3_" r="64"/></defs><clipPath id="SVGID_2_"><use overflow="visible" xlink:href="#SVGID_3_"/></clipPath><polygon clip-path="url(#SVGID_2_)" fill="#648778" points="93.572,29.677 128,64 128,128 54.36,128 33.341,106.906 "/></g><path d="M84.044,20H36.018C33.579,20,32,22.11,32,24.549v78.903c0,2.439,1.579,4.549,4.018,4.549h55.989 c2.439,0,4.018-2.11,4.018-4.549V32.143L84.044,20z" fill="#F1F1F1"/><g><defs><path d="M84.044,20H36.018C33.579,20,32,22.11,32,24.549v78.903c0,2.439,1.579,4.549,4.018,4.549h55.989 c2.439,0,4.018-2.11,4.018-4.549V32.143L84.044,20z" id="SVGID_5_"/></defs><clipPath id="SVGID_4_"><use overflow="visible" xlink:href="#SVGID_5_"/></clipPath><g clip-path="url(#SVGID_4_)"><polygon fill="#DDE1F1" points="50.948,67.621 65.539,82.042 42.971,83.087 49.777,90 42.971,91.087 49.277,97.555 42.971,99.087 53.027,109.305 97.684,109.305 97.684,75.707 97.075,54.055 81.059,37.758 70.97,44.918 62.684,35.107 "/></g></g><path d="M88.186,32.138l7.839,0.005L84.044,20v7.96C84.044,30.398,85.769,32.138,88.186,32.138z" fill="#C2DFC9"/><path d="M84,83.5H44c-0.828,0-1.5-0.672-1.5-1.5s0.672-1.5,1.5-1.5h40c0.828,0,1.5,0.672,1.5,1.5 S84.828,83.5,84,83.5z" fill="#495260"/><path d="M84,91.5H44c-0.828,0-1.5-0.672-1.5-1.5s0.672-1.5,1.5-1.5h40c0.828,0,1.5,0.672,1.5,1.5 S84.828,91.5,84,91.5z" fill="#495260"/><path d="M84,99.5H44c-0.828,0-1.5-0.672-1.5-1.5s0.672-1.5,1.5-1.5h40c0.828,0,1.5,0.672,1.5,1.5 S84.828,99.5,84,99.5z" fill="#495260"/><g><path d="M69.568,31.844l-1.319,11.303c2.314,0.88,4.242,2.728,5.132,5.245c0.573,1.619,0.631,3.292,0.274,4.851 l10.257,4.895c0.527,0.252,1.155-0.023,1.329-0.581c1.308-4.188,1.323-8.819-0.253-13.273 c-2.379-6.723-7.827-11.477-14.212-13.254C70.21,30.872,69.636,31.26,69.568,31.844z" fill="#0E9CD9"/><path d="M66.68,59.901c-3.653,0.668-7.398-1.12-9.176-4.38c-1.094-2.006-1.312-4.174-0.858-6.157L46.39,44.469 c-0.527-0.251-1.155,0.023-1.329,0.58c-1.286,4.118-1.322,8.663,0.175,13.049c3.701,10.842,15.624,16.783,26.503,13.191 c4.655-1.537,8.399-4.531,10.911-8.3c0.324-0.486,0.141-1.147-0.385-1.398l-10.257-4.896 C70.751,58.296,68.929,59.49,66.68,59.901z" fill="#E95037"/><path d="M62.239,43.074c0.734-0.26,1.479-0.405,2.22-0.464l1.316-11.275c0.067-0.576-0.389-1.08-0.968-1.071 c-2.218,0.035-4.469,0.421-6.676,1.202c-4.455,1.576-8.045,4.5-10.479,8.151c-0.324,0.486-0.142,1.147,0.385,1.399l10.257,4.895 C59.282,44.654,60.62,43.647,62.239,43.074z" fill="#69B32D"/><g><defs><path d="M69.695,30.76l-1.446,12.387c2.314,0.88,4.242,2.728,5.132,5.245c0.573,1.619,0.631,3.292,0.274,4.851 l10.257,4.895c0.527,0.252,1.155-0.023,1.329-0.581c1.308-4.188,1.323-8.819-0.253-13.273 C82.476,37.185,76.541,32.281,69.695,30.76z M66.68,59.901c-3.653,0.668-7.398-1.12-9.176-4.38 c-1.094-2.006-1.312-4.174-0.858-6.157L46.39,44.469c-0.527-0.251-1.155,0.023-1.329,0.58 c-1.286,4.118-1.322,8.663,0.175,13.049c3.701,10.842,15.624,16.783,26.503,13.191c4.655-1.537,8.399-4.531,10.911-8.3 c0.324-0.486,0.141-1.147-0.385-1.398l-10.257-4.896C70.751,58.296,68.929,59.49,66.68,59.901z M62.239,43.074 c0.734-0.26,1.479-0.405,2.22-0.464l1.316-11.275c0.067-0.576-0.389-1.08-0.968-1.071c-2.218,0.035-4.469,0.421-6.676,1.202 c-4.455,1.576-8.045,4.5-10.479,8.151c-0.324,0.486-0.142,1.147,0.385,1.399l10.257,4.895 C59.282,44.654,60.62,43.647,62.239,43.074z" id="SVGID_7_"/></defs><clipPath id="SVGID_6_"><use overflow="visible" xlink:href="#SVGID_7_"/></clipPath><circle clip-path="url(#SVGID_6_)" cx="65.151" cy="51.304" fill="#FFFFFF" opacity="0.4" r="12.507"/></g></g></g></g></svg>
@@ -1,4 +0,0 @@
1
- .side-nav__brand {
2
- background: url('custom-logo.svg') no-repeat left center !important;
3
- margin-left: 10px;
4
- }
@@ -1,5 +0,0 @@
1
- id: jira
2
- name: Jira Plugin
3
- description: The plugin that adds support for Jira integration.
4
- extensions:
5
- - io.qameta.allure.jira.JiraExportPlugin
@@ -1,5 +0,0 @@
1
- id: junit
2
- name: JUnit Plugin
3
- description: The plugin that adds support for results in JUnit.xml data format.
4
- extensions:
5
- - io.qameta.allure.junitxml.JunitXmlPlugin
@@ -1,7 +0,0 @@
1
- id: packages
2
- name: Packages aggregator
3
- description: The aggregator adds packages tab to the report
4
- extensions:
5
- - io.qameta.allure.packages.PackagesPlugin
6
- jsFiles:
7
- - index.js
@@ -1,104 +0,0 @@
1
- 'use strict';
2
-
3
- allure.api.addTranslation('en', {
4
- tab: {
5
- packages: {
6
- name: 'Packages'
7
- }
8
- }
9
- });
10
-
11
- allure.api.addTranslation('ru', {
12
- tab: {
13
- packages: {
14
- name: 'Пакеты'
15
- }
16
- }
17
- });
18
-
19
- allure.api.addTranslation('zh', {
20
- tab: {
21
- packages: {
22
- name: '包'
23
- }
24
- }
25
- });
26
-
27
- allure.api.addTranslation('de', {
28
- tab: {
29
- packages: {
30
- name: 'Pakete'
31
- }
32
- }
33
- });
34
-
35
- allure.api.addTranslation('nl', {
36
- tab: {
37
- packages: {
38
- name: 'Packages'
39
- }
40
- }
41
- });
42
-
43
- allure.api.addTranslation('he', {
44
- tab: {
45
- packages: {
46
- name: 'חבילות'
47
- }
48
- }
49
- });
50
-
51
- allure.api.addTranslation('br', {
52
- tab: {
53
- packages: {
54
- name: 'Pacotes'
55
- }
56
- }
57
- });
58
-
59
- allure.api.addTranslation('ja', {
60
- tab: {
61
- packages: {
62
- name: 'パッケージ'
63
- }
64
- }
65
- });
66
-
67
- allure.api.addTranslation('es', {
68
- tab: {
69
- packages: {
70
- name: 'Paquetes'
71
- }
72
- }
73
- });
74
-
75
- allure.api.addTranslation('kr', {
76
- tab: {
77
- packages: {
78
- name: '패키지'
79
- }
80
- }
81
- });
82
-
83
- allure.api.addTranslation('fr', {
84
- tab: {
85
- packages: {
86
- name: 'Paquets'
87
- }
88
- }
89
- });
90
-
91
- allure.api.addTab('packages', {
92
- title: 'tab.packages.name', icon: 'fa fa-align-left',
93
- route: 'packages(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
94
- onEnter: (function (testGroup, testResult, testResultTab) {
95
- return new allure.components.TreeLayout({
96
- testGroup: testGroup,
97
- testResult: testResult,
98
- testResultTab: testResultTab,
99
- tabName: 'tab.packages.name',
100
- baseUrl: 'packages',
101
- url: 'data/packages.json'
102
- });
103
- })
104
- });
@@ -1,7 +0,0 @@
1
- id: screen-diff
2
- name: Screen diff
3
- description: Who cares about description by just-boris
4
- jsFiles:
5
- - index.js
6
- cssFiles:
7
- - styles.css
@@ -1,200 +0,0 @@
1
- (function () {
2
- var settings = allure.getPluginSettings('screen-diff', { diffType: 'diff' });
3
-
4
- function renderImage(src) {
5
- return (
6
- '<div class="screen-diff__container">' +
7
- '<img class="screen-diff__image" src="' +
8
- src +
9
- '">' +
10
- '</div>'
11
- );
12
- }
13
-
14
- function findImage(data, name) {
15
- if (data.testStage && data.testStage.attachments) {
16
- var matchedImage = data.testStage.attachments.filter(function (attachment) {
17
- return attachment.name === name;
18
- })[0];
19
- if (matchedImage) {
20
- return 'data/attachments/' + matchedImage.source;
21
- }
22
- }
23
- return null;
24
- }
25
-
26
- function renderDiffContent(type, diffImage, actualImage, expectedImage) {
27
- if (type === 'diff') {
28
- if (diffImage) {
29
- return renderImage(diffImage);
30
- }
31
- }
32
- if (type === 'overlay' && expectedImage) {
33
- return (
34
- '<div class="screen-diff__overlay screen-diff__container">' +
35
- '<img class="screen-diff__image" src="' +
36
- expectedImage +
37
- '">' +
38
- '<div class="screen-diff__image-over">' +
39
- '<img class="screen-diff__image" src="' +
40
- actualImage +
41
- '">' +
42
- '</div>' +
43
- '</div>'
44
- );
45
- }
46
- if (actualImage) {
47
- return renderImage(actualImage);
48
- }
49
- return 'No diff data provided';
50
- }
51
-
52
- var TestResultView = Backbone.Marionette.View.extend({
53
- regions: {
54
- subView: '.screen-diff-view',
55
- },
56
- template: function () {
57
- return '<div class="screen-diff-view"></div>';
58
- },
59
- onRender: function () {
60
- var data = this.model.toJSON();
61
- var testType = data.labels.filter(function (label) {
62
- return label.name === 'testType';
63
- })[0];
64
- var diffImage = findImage(data, 'diff');
65
- var actualImage = findImage(data, 'actual');
66
- var expectedImage = findImage(data, 'expected');
67
- if (!testType || testType.value !== 'screenshotDiff') {
68
- return;
69
- }
70
- this.showChildView(
71
- 'subView',
72
- new ScreenDiffView({
73
- diffImage: diffImage,
74
- actualImage: actualImage,
75
- expectedImage: expectedImage,
76
- }),
77
- );
78
- },
79
- });
80
- var ErrorView = Backbone.Marionette.View.extend({
81
- templateContext: function () {
82
- return this.options;
83
- },
84
- template: function (data) {
85
- return '<pre class="screen-diff-error">' + data.error + '</pre>';
86
- },
87
- });
88
- var AttachmentView = Backbone.Marionette.View.extend({
89
- regions: {
90
- subView: '.screen-diff-view',
91
- },
92
- template: function () {
93
- return '<div class="screen-diff-view"></div>';
94
- },
95
- onRender: function () {
96
- jQuery
97
- .getJSON(this.options.sourceUrl)
98
- .then(this.renderScreenDiffView.bind(this), this.renderErrorView.bind(this));
99
- },
100
- renderErrorView: function (error) {
101
- console.log(error);
102
- this.showChildView(
103
- 'subView',
104
- new ErrorView({
105
- error: error.statusText,
106
- }),
107
- );
108
- },
109
- renderScreenDiffView: function (data) {
110
- this.showChildView(
111
- 'subView',
112
- new ScreenDiffView({
113
- diffImage: data.diff,
114
- actualImage: data.actual,
115
- expectedImage: data.expected,
116
- }),
117
- );
118
- },
119
- });
120
-
121
- var ScreenDiffView = Backbone.Marionette.View.extend({
122
- className: 'pane__section',
123
- events: function () {
124
- return {
125
- ['click [name="screen-diff-type-' + this.cid + '"]']: 'onDiffTypeChange',
126
- 'mousemove .screen-diff__overlay': 'onOverlayMove',
127
- };
128
- },
129
- initialize: function (options) {
130
- this.diffImage = options.diffImage;
131
- this.actualImage = options.actualImage;
132
- this.expectedImage = options.expectedImage;
133
- this.radioName = 'screen-diff-type-' + this.cid;
134
- },
135
- templateContext: function () {
136
- return {
137
- diffType: settings.get('diffType'),
138
- diffImage: this.diffImage,
139
- actualImage: this.actualImage,
140
- expectedImage: this.expectedImage,
141
- radioName: this.radioName,
142
- };
143
- },
144
- template: function (data) {
145
- if (!data.diffImage && !data.actualImage && !data.expectedImage) {
146
- return '';
147
- }
148
-
149
- return (
150
- '<h3 class="pane__section-title">Screen Diff</h3>' +
151
- '<div class="screen-diff__content">' +
152
- '<div class="screen-diff__switchers">' +
153
- '<label><input type="radio" name="' +
154
- data.radioName +
155
- '" value="diff"> Show diff</label>' +
156
- '<label><input type="radio" name="' +
157
- data.radioName +
158
- '" value="overlay"> Show overlay</label>' +
159
- '</div>' +
160
- renderDiffContent(
161
- data.diffType,
162
- data.diffImage,
163
- data.actualImage,
164
- data.expectedImage,
165
- ) +
166
- '</div>'
167
- );
168
- },
169
- adjustImageSize: function (event) {
170
- var overImage = this.$(event.target);
171
- overImage.width(overImage.width());
172
- },
173
- onRender: function () {
174
- const diffType = settings.get('diffType');
175
- this.$('[name="' + this.radioName + '"][value="' + diffType + '"]').prop(
176
- 'checked',
177
- true,
178
- );
179
- if (diffType === 'overlay') {
180
- this.$('.screen-diff__image-over img').on('load', this.adjustImageSize.bind(this));
181
- }
182
- },
183
- onOverlayMove: function (event) {
184
- var pageX = event.pageX;
185
- var containerScroll = this.$('.screen-diff__container').scrollLeft();
186
- var elementX = event.currentTarget.getBoundingClientRect().left;
187
- var delta = pageX - elementX + containerScroll;
188
- this.$('.screen-diff__image-over').width(delta);
189
- },
190
- onDiffTypeChange: function (event) {
191
- settings.save('diffType', event.target.value);
192
- this.render();
193
- },
194
- });
195
- allure.api.addTestResultBlock(TestResultView, { position: 'before' });
196
- allure.api.addAttachmentViewer('application/vnd.allure.image.diff', {
197
- View: AttachmentView,
198
- icon: 'fa fa-exchange',
199
- });
200
- })();
@@ -1,30 +0,0 @@
1
- .screen-diff__switchers {
2
- margin-bottom: 1em;
3
- }
4
-
5
- .screen-diff__switchers label + label {
6
- margin-left: 1em;
7
- }
8
-
9
- .screen-diff__overlay {
10
- position: relative;
11
- cursor: col-resize;
12
- }
13
-
14
- .screen-diff__container {
15
- overflow-x: auto;
16
- }
17
-
18
- .screen-diff__image-over {
19
- top: 0;
20
- left: 0;
21
- bottom: 0;
22
- background: #fff;
23
- position: absolute;
24
- overflow: hidden;
25
- box-shadow: 2px 0 1px -1px #aaa;
26
- }
27
-
28
- .screen-diff-error {
29
- color: #fd5a3e;
30
- }
@@ -1,5 +0,0 @@
1
- id: trx
2
- name: XUnit TRX Plugin
3
- description: The plugin that adds support for results TRX data format.
4
- extensions:
5
- - io.qameta.allure.trx.TrxPlugin
@@ -1,5 +0,0 @@
1
- id: xctest
2
- name: XCTest Plugin
3
- description: The plugin that adds support for results XCTest data format.
4
- extensions:
5
- - io.qameta.allure.xctest.XcTestPlugin
@@ -1,5 +0,0 @@
1
- id: xray
2
- name: Xray Plugin
3
- description: The plugin that adds support for Xray integration.
4
- extensions:
5
- - io.qameta.allure.xray.XrayTestRunExportPlugin
@@ -1,5 +0,0 @@
1
- id: xunit-xml
2
- name: XUnit XML v2 Plugin
3
- description: The plugin that adds support for results in Xunit.net xml data format.
4
- extensions:
5
- - io.qameta.allure.xunitxml.XunitXmlPlugin