File tree 2 files changed +23
-3
lines changed
2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,32 @@ pipeline {
6
6
}
7
7
}
8
8
stages {
9
- stage(' build ' ) {
9
+ stage(' Build ' ) {
10
10
steps {
11
11
sh ' PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm install'
12
12
}
13
13
}
14
- stage(' test ' ) {
14
+ stage(' Test ' ) {
15
15
steps {
16
16
sh ' npm run test:pw'
17
17
}
18
18
}
19
+ stage(' Report' ) {
20
+ steps {
21
+ publishHTML (target : [allowMissing : false ,
22
+ alwaysLinkToLastBuild : true ,
23
+ keepAll : true ,
24
+ reportDir : ' playwright-report' ,
25
+ reportFiles : ' index.html' ,
26
+ reportName : ' Playwright Report' ,
27
+ reportTitles : ' PW Report' ])
28
+ }
29
+ }
30
+ }
31
+ post {
32
+ always {
33
+ archiveArtifacts artifacts : ' playwright-report/**/*.*' , fingerprint : true
34
+ junit ' test-results/**/*.xml'
35
+ }
19
36
}
20
37
}
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ export default defineConfig({
8
8
trace : 'on' ,
9
9
screenshot : 'on'
10
10
} ,
11
- reporter : [ [ 'html' , { open : 'never' } ] ]
11
+ reporter : [
12
+ [ 'html' , { open : 'never' } ] ,
13
+ [ 'junit' , { outputFile : 'test-results/e2e-junit-results.xml' } ]
14
+ ]
12
15
} ) ;
13
16
You can’t perform that action at this time.
0 commit comments