Stryker

ProgressReporter.js - Stryker report

Summary

File
Mutation score
# Killed
# Survived
# Timeout
# No coverage
# Errors
Total detected
Total undetected
Total mutants
ProgressReporter.js
100%
2/2 2 0 0 0 0 2 0 2

Code

"use strict";
var report_1 = require('stryker-api/report');
var chalk = require('chalk');
var ProgressReporter = (function () 0{
    function ProgressReporter() {
    }
    ProgressReporter.prototype.onMutantTested = function (result) 1{
        var toLog;
        switch (result.status) {
            case report_1.MutantStatus.Killed:
                toLog = '.';
                break;
            case report_1.MutantStatus.TimedOut:
                toLog = chalk.yellow('T');
                break;
            case report_1.MutantStatus.Survived:
                toLog = chalk.bold.red('S');
                break;
            default:
                toLog = '';
                break;
        }
        process.stdout.write(toLog);
    };
    return ProgressReporter;
}());
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = ProgressReporter;
//# sourceMappingURL=ProgressReporter.js.map