diff --git a/cmd/test.go b/cmd/test.go index 597f4521e..14a611ddb 100755 --- a/cmd/test.go +++ b/cmd/test.go @@ -280,7 +280,7 @@ func (t *Test) GetCmd() *cobra.Command { } t.logger.Debug("the configuration for mocking mongo connection", zap.Any("password", mongoPassword)) - t.tester.Test(path, testReportPath, appCmd, test.TestOptions{ + if !t.tester.Test(path, testReportPath, appCmd, test.TestOptions{ Tests: tests, AppContainer: appContainer, AppNetwork: networkName, @@ -294,7 +294,9 @@ func (t *Test) GetCmd() *cobra.Command { TestsetNoise: testsetNoise, WithCoverage: withCoverage, CoverageReportPath: coverageReportPath, - }, enableTele) + }, enableTele) { + os.Exit(1) + } return nil },