File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ /* eslint-disable no-console */
2
+ /**
3
+ * External dependencies
4
+ */
5
+ import type {
6
+ FullConfig ,
7
+ FullResult ,
8
+ Reporter ,
9
+ Suite ,
10
+ TestCase ,
11
+ TestResult ,
12
+ } from '@playwright/test/reporter' ;
13
+
14
+ class AtomicDebugReporter implements Reporter {
15
+ onBegin ( config : FullConfig , suite : Suite ) {
16
+ console . log (
17
+ `Starting the run with ${ suite . allTests ( ) . length } tests`
18
+ ) ;
19
+ }
20
+
21
+ onTestBegin ( test : TestCase ) {
22
+ console . log ( `Starting test ${ test . title } ` ) ;
23
+ }
24
+
25
+ onTestEnd ( test : TestCase , result : TestResult ) {
26
+ console . log ( `Finished test ${ test . title } : ${ result . status } ` ) ;
27
+ }
28
+
29
+ onEnd ( result : FullResult ) {
30
+ console . log ( `Finished the run: ${ result . status } ` ) ;
31
+ }
32
+ }
33
+
34
+ export default AtomicDebugReporter ;
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export default defineConfig( {
62
62
[ 'github' ] ,
63
63
[ 'json' , { outputFile : 'results.json' } ] ,
64
64
[ 'html' ] ,
65
+ [ './atomic-debug-reporter.ts' ] ,
65
66
]
66
67
: [ [ 'html' , { open : 'never' } ] ] ,
67
68
outputDir : './test-results' ,
You can’t perform that action at this time.
0 commit comments