(function (Joi, util, logger) {
    'use strict';

    var validFormats = ['lcov'];
    var formatValidation = Joi.string().valid(validFormats).required();

    module.exports = {
        getParser: function getParser(coverageFormat) {
            var validFormat = Joi.validate(coverageFormat, formatValidation);

            if (validFormat.error) {
                logger.error(validFormat.error);
                throw new Error(util.format('Expected one of the following supported formats: %j, but got [%s]', validFormats, coverageFormat));
            }

            logger.debug('Creating coverage parser for: ' + coverageFormat);
            return require('./impl/' + coverageFormat);
        }
    };
}(require('joi'), require('util'), require('./logger')()));

(function (Joi, util, logger) {
    'use strict';

    var validFormats = ['lcov','jacoco'];
    var formatValidation = Joi.string().valid(validFormats).required();

    module.exports = {
        getParser: function getParser(coverageFormat) {
            var validFormat = Joi.validate(coverageFormat, formatValidation);

            if (validFormat.error) {
                logger.error(validFormat.error);
                throw new Error(util.format('Expected one of the following supported formats: %j, but got [%s]', validFormats, coverageFormat));
            }

            logger.debug('Creating coverage parser for: ' + coverageFormat);
            return require('./impl/' + coverageFormat);
        }
    };
}(require('joi'), require('util'), require('./logger')()));

Add Jacoco to list of valid formats
Add Jacoco to list of valid formats
