File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
packages/core/src/amazonqTest/models Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -101,16 +101,22 @@ export const testGenBuildProgressMessage = (currentStep: TestGenerationBuildStep
101101
102102 updateStepStatuses ( currentStep , status )
103103
104- if ( currentStep === TestGenerationBuildStep . RUN_BUILD ) {
105- message += `${ getIconForStep ( TestGenerationBuildStep . RUN_BUILD ) } Project compiling\n`
106- } else if ( currentStep >= TestGenerationBuildStep . RUN_BUILD ) {
107- message += `${ getIconForStep ( TestGenerationBuildStep . RUN_BUILD ) } Project compiled\n`
104+ if ( currentStep >= TestGenerationBuildStep . RUN_BUILD ) {
105+ message += `${ getIconForStep ( TestGenerationBuildStep . RUN_BUILD ) } ${
106+ currentStep === TestGenerationBuildStep . RUN_BUILD
107+ ? 'Project compiling\n'
108+ : session . buildStatus === BuildStatus . FAILURE
109+ ? 'Unable to compile project\n'
110+ : 'Project compiled\n'
111+ } `
108112 }
109113
110114 if ( currentStep === TestGenerationBuildStep . RUN_EXECUTION_TESTS ) {
111115 message += `${ getIconForStep ( TestGenerationBuildStep . RUN_EXECUTION_TESTS ) } Running tests\n`
112116 } else if ( currentStep >= TestGenerationBuildStep . RUN_EXECUTION_TESTS ) {
113- message += `${ getIconForStep ( TestGenerationBuildStep . RUN_EXECUTION_TESTS ) } Ran tests\n`
117+ message += `${ getIconForStep ( TestGenerationBuildStep . RUN_EXECUTION_TESTS ) } ${
118+ session . buildStatus === BuildStatus . FAILURE ? 'Tests failed\n' : 'Tests passed\n'
119+ } `
114120 }
115121
116122 if ( currentStep === TestGenerationBuildStep . FIXING_TEST_CASES && session . buildStatus === BuildStatus . FAILURE ) {
You can’t perform that action at this time.
0 commit comments