@@ -45,6 +45,8 @@ const httpCache = args.includes('--http-cache');
45
45
const aot = args . includes ( '--aot' ) ;
46
46
const debugBuild = args . includes ( '--debug-build' ) ;
47
47
const debugLog = args . includes ( '--debug-log' ) ;
48
+ const skipSetup = args . includes ( '--skip-setup' ) ;
49
+ const skipTeardown = args . includes ( '--skip-teardown' ) ;
48
50
const filter = args . filter ( ( arg ) => ! arg . startsWith ( '--' ) ) ;
49
51
const bail = args . includes ( '--bail' ) ;
50
52
const ci = args . includes ( '--ci' ) ;
@@ -185,7 +187,7 @@ const [{ default: tests }] = await Promise.all([
185
187
) ;
186
188
} ) ( ) ,
187
189
( async ( ) => {
188
- if ( ! local ) {
190
+ if ( ! local && ! skipSetup ) {
189
191
const setupPath = join ( __dirname , 'setup.js' ) ;
190
192
if ( existsSync ( setupPath ) ) {
191
193
await zx `node ${ setupPath } ${ serviceId } ${ ci ? serviceName : '' } ` ;
@@ -428,13 +430,10 @@ if (failed.length) {
428
430
}
429
431
430
432
if ( ! local && failed . length ) {
431
- core . notice ( `Tests failed, the service is named "${ serviceName } "` ) ;
432
- if ( domain ) {
433
- core . notice ( `You can debug the service on ${ domain } ` ) ;
434
- }
433
+ core . notice ( `Tests failed.` ) ;
435
434
}
436
435
437
- if ( ! local && ! failed . length ) {
436
+ if ( ( ! local && ! skipTeardown ) || failed . length > 0 ) {
438
437
const teardownPath = join ( fixturePath , 'teardown.js' ) ;
439
438
if ( existsSync ( teardownPath ) ) {
440
439
core . startGroup ( 'Tear down the extra set-up for the service' ) ;
0 commit comments