File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
packages/core/src/codewhisperer Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ export async function startTestGenerationProcess(
120
120
)
121
121
// TODO: Send status to test summary
122
122
if ( jobStatus === TestGenerationJobStatus . FAILED ) {
123
+ session . numberOfTestsGenerated = 0
123
124
logger . verbose ( `Test generation failed.` )
124
125
throw new TestGenFailedError ( )
125
126
}
Original file line number Diff line number Diff line change @@ -222,6 +222,8 @@ export async function exportResultsArchive(
222
222
await fs . mkdir ( pathToArchiveDir )
223
223
224
224
let downloadErrorMessage = undefined
225
+
226
+ const session = ChatSessionManager . Instance . getSession ( )
225
227
try {
226
228
const pathToArchive = path . join ( pathToArchiveDir , 'QTestGeneration.zip' )
227
229
// Download and deserialize the zip
@@ -248,6 +250,7 @@ export async function exportResultsArchive(
248
250
} )
249
251
}
250
252
} catch ( e ) {
253
+ session . numberOfTestsGenerated = 0
251
254
downloadErrorMessage = ( e as Error ) . message
252
255
getLogger ( ) . error ( `Unit Test Generation: ExportResultArchive error = ${ downloadErrorMessage } ` )
253
256
throw new Error ( 'Error downloading test generation result artifacts: ' + downloadErrorMessage )
You can’t perform that action at this time.
0 commit comments