mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-02-07 21:48:24 +00:00
b0204bd14b
* commit first * Update README.md * Update README.md * first commit * Change Docs * Update README.md * Update README.md * Update Calendar Web Part * Update README.md * Update README.md * Update Docs * Update - Suport Create Event in SiteTimeZone * update Docs * update docs * Update comments * upd default start/end dates on prop panel * update Prop * upd default props panel * upd comments
31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
JavaScript
"use strict";
|
|
var existingKarmaConfig = require('@microsoft/sp-build-web/lib/karma/karma.config');
|
|
var junitReporter = require('karma-junit-reporter');
|
|
|
|
module.exports = function (config) {
|
|
existingKarmaConfig(config);
|
|
config.reporters.push('junit');
|
|
|
|
config.set({
|
|
basePath: './..',
|
|
});
|
|
|
|
config.junitReporter = {
|
|
outputDir: 'temp/', // results will be saved as $outputDir/$browserName.xml
|
|
outputFile: 'test-results.xml', // if included, results will be saved as $outputDir/$browserName/$outputFile
|
|
suite: 'karma', // suite will become the package name attribute in xml testsuite element
|
|
useBrowserName: true, // add browser name to report and classes names
|
|
};
|
|
var coberturaSubDir = 'cobertura';
|
|
var coverageSubDir = 'lcov';
|
|
var coberturaFileName = 'cobertura.xml';
|
|
config.coverageReporter.reporters.push({type: 'cobertura', subdir: './' + coberturaSubDir, file: coberturaFileName});
|
|
config.coverageReporter.reporters.push({
|
|
type: 'lcov',
|
|
subdir: './' + coverageSubDir + '/',
|
|
file: 'lcov.info'
|
|
});
|
|
config.browserNoActivityTimeout = 60000;
|
|
config.plugins.push(junitReporter);
|
|
};
|