diff --git a/src/framework/CppUTestRunnable.ts b/src/framework/CppUTestRunnable.ts index d5a54a83..4100fdeb 100644 --- a/src/framework/CppUTestRunnable.ts +++ b/src/framework/CppUTestRunnable.ts @@ -51,7 +51,7 @@ export class CppUTestRunnable extends AbstractRunnable { const reloadResult = new RunnableReloadResult(); - const processTestcases = async (testsuite: any, reloadResult: RunnableReloadResult) => { + const processTestcases = async (testsuite: XmlObject, reloadResult: RunnableReloadResult): Promise => { const suiteName = testsuite.$.name; for (let i = 0; i < testsuite.testcase.length; i++) { if (cancellationFlag.isCancellationRequested) return; @@ -79,8 +79,9 @@ export class CppUTestRunnable extends AbstractRunnable { if (xml.testsuites !== undefined) { for (let i = 0; i < xml.testsuites.testsuite.length; ++i) { - await processTestcases(xml.testsuites.testsuite[i], reloadResult) - .catch((err) => this._shared.log.info('Error', err)); + await processTestcases(xml.testsuites.testsuite[i], reloadResult).catch(err => + this._shared.log.info('Error', err), + ); } } else { await processTestcases(xml.testsuite, reloadResult);