Skip to content

Commit cf38c1f

Browse files
committed
Fit and finish
1 parent 36d3d4c commit cf38c1f

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

packages/core/src/amazonqTest/models/constants.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)