diff --git a/src/adapter.ts b/src/adapter.ts index c097634..0ed57a4 100644 --- a/src/adapter.ts +++ b/src/adapter.ts @@ -388,7 +388,7 @@ export class CeedlingAdapter implements TestAdapter { private async getCeedlingVersion(): Promise { const result = await this.execCeedling(['version']); - const regex = new RegExp('^\\s*Ceedling::\\s*(.*)$', 'gm'); + const regex = new RegExp('Ceedling => *([\d\.]*)$|Ceedling:: *([\d\.]*)$', 'gm'); const match = regex.exec(result.stdout); if (!match) { this.logger.error(`fail to get the ceedling version: ${util.format(result)}`);