Commit f626aba1 authored by Eduardo Sanz García's avatar Eduardo Sanz García
Browse files

test: some changes in karma configuration

parent ddaa94f6
Pipeline #2764 failed with stages
in 2 minutes
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
// Configuration used in test:sr
module.exports = function (config) {
config.set({
basePath: '',
......@@ -19,13 +21,13 @@ module.exports = function (config) {
fixWebpackSourcePaths: true
},
angularCli: {
environment: 'dev'
environment: 'prod'
},
reporters: ['progress', 'coverage-istanbul'],
reporters: ['coverage-istanbul'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
autoWatch: false,
browsers: ['ChromiumHeadlessNoSandbox'],
customLaunchers: {
ChromiumHeadlessNoSandbox: {
......@@ -35,6 +37,6 @@ module.exports = function (config) {
]
}
},
singleRun: false
singleRun: true
});
};
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
// Configuration use for test
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular/cli'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-chrome-launcher'),
require('karma-coverage-istanbul-reporter'),
require('@angular/cli/plugins/karma')
],
......@@ -20,14 +22,15 @@ module.exports = function (config) {
fixWebpackSourcePaths: true
},
angularCli: {
environment: 'dev'
environment: 'prod'
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
// browsers: ['Chrome'],
browsers: ['ChromeCanary'],
singleRun: false
});
};
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
// Configuration for test:sr:chromium used in gitlab CI
module.exports = function (config) {
config.set({
basePath: '',
......@@ -19,13 +21,13 @@ module.exports = function (config) {
fixWebpackSourcePaths: true
},
angularCli: {
environment: 'dev'
environment: 'prod'
},
reporters: ['progress', 'coverage-istanbul'],
reporters: ['coverage-istanbul'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
autoWatch: false,
browsers: ['ChromiumHeadlessNoSandbox'],
customLaunchers: {
ChromiumHeadlessNoSandbox: {
......@@ -35,6 +37,6 @@ module.exports = function (config) {
]
}
},
singleRun: false
singleRun: true
});
};
......@@ -7,8 +7,8 @@
"start": "ng serve --aot",
"build": "ng build --prod --aot",
"test": "ng test --config=karma_chrome.conf.js",
"test:sr": "ng test --progress=false --single-run=true --code-coverage=true",
"test:sr:chromium": "ng test --progress=false --single-run=true --code-coverage=true --config=karma_chromium.conf.js",
"test:sr": "ng test --progress=false",
"test:sr:chromium": "ng test --progress=false --config=karma_chromium.conf.js",
"lint": "ng lint --type-check",
"e2e": "ng e2e",
"packagr": "ng-packagr -p ng-package.json"
......
......@@ -43,7 +43,7 @@
/** Evergreen browsers require these. **/
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
import 'core-js/es7/reflect';
// import 'core-js/es7/reflect';
/**
......
{
"compileOnSave": false,
"angularCompilerOptions": {
"preserveWhitespaces": false
},
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment