UNPKG

@stryker-mutator/core

Version:

The extendable JavaScript mutation testing framework

30 lines 874 B
import os from 'os'; import chalk from 'chalk'; import { MutantStatus } from '@stryker-mutator/api/core'; export class DotsReporter { onMutantTested(result) { let toLog; switch (result.status) { case MutantStatus.Killed: toLog = '.'; break; case MutantStatus.Timeout: toLog = chalk.yellow('T'); break; case MutantStatus.Survived: toLog = chalk.bold.red('S'); break; case MutantStatus.RuntimeError: toLog = chalk.yellow('E'); break; default: toLog = ''; break; } process.stdout.write(toLog); } onMutationTestReportReady() { process.stdout.write(os.EOL); } } //# sourceMappingURL=dots-reporter.js.map