File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ module.exports = function (config, reporter) {
22
22
'iterations' : [ ] ,
23
23
'testInfo' : { }
24
24
} ;
25
+ const metadata = testCase [ 0 ] . pair . metadata ;
26
+ const projectKey = metadata ? metadata [ 0 ] . split ( '-' ) [ 0 ] : '' ;
25
27
26
28
testCase . forEach ( ( testedViewport ) => {
27
29
let { pair : { viewportLabel : name } , status } = testedViewport ;
@@ -32,23 +34,26 @@ module.exports = function (config, reporter) {
32
34
}
33
35
xrayTestResult . iterations . push ( { name, status } ) ;
34
36
} ) ;
35
-
36
37
xrayTestResult . status = testStatus ;
37
- xrayTestResult . testInfo . requirementKeys = testCase [ 0 ] . pair . metadata ;
38
+ xrayTestResult . testInfo . requirementKeys = metadata ;
39
+ xrayTestResult . testInfo . projectKey = projectKey ;
38
40
xrayTestResult . testInfo . summary = testCase [ 0 ] . pair . label ;
39
41
xrayTestResult . testInfo . type = "Generic" ;
40
42
transformedTestCases . push (
41
43
xrayTestResult
42
44
) ;
43
45
}
44
46
47
+ debugger ;
45
48
return transformedTestCases ;
46
49
}
47
50
48
51
function transformToXrayJson ( json ) {
49
52
const results = { }
50
53
const namedTestCases = _ . groupBy ( json , 'pair.label' ) ;
51
- return results . tests = transformTestCases ( namedTestCases ) ;
54
+
55
+ results . tests = transformTestCases ( namedTestCases ) ;
56
+ return results ;
52
57
}
53
58
54
59
logger . log ( 'Writing Xray json report' ) ;
Original file line number Diff line number Diff line change 9
9
RUN apt-get update && \
10
10
apt-get install -y git sudo software-properties-common
11
11
12
- RUN sudo npm install -g --unsafe-perm=true --allow-root https://github.com/justyna-olszak-wttech/BackstopJS.git#5 .4.5
12
+ RUN sudo npm install -g --unsafe-perm=true --allow-root https://github.com/justyna-olszak-wttech/BackstopJS.git#v5 .4.5
13
13
14
14
RUN wget https://dl-ssl.google.com/linux/linux_signing_key.pub && sudo apt-key add linux_signing_key.pub
15
15
RUN sudo add-apt-repository "deb http://dl.google.com/linux/chrome/deb/ stable main"
You can’t perform that action at this time.
0 commit comments