-
Notifications
You must be signed in to change notification settings - Fork 162
Open
Description
Seems to be similar to #218
But I have updated jasmine.
I ran karma with LOG_DEBUG - and I can see that the jasmine config is correctly setup.
Click here to see the final config:
08 05 2021 10:26:33.426:DEBUG [karma-server]: Final config Config {
LOG_DISABLE: 'OFF',
LOG_ERROR: 'ERROR',
LOG_WARN: 'WARN',
LOG_INFO: 'INFO',
LOG_DEBUG: 'DEBUG',
frameworks: [ 'jasmine', '@angular-devkit/build-angular' ],
protocol: 'http:',
port: 9876,
listenAddress: '0.0.0.0',
hostname: 'localhost',
httpsServerConfig: {},
basePath: '/home/abdealijk/app/frontend',
files: [],
browserConsoleLogOptions: { level: 'debug', format: '%b %T: %m', terminal: true },
customContextFile: null,
customDebugFile: null,
customClientContextFile: null,
exclude: [ '/home/abdealijk/app/frontend/karma.conf.js' ],
logLevel: 'DEBUG',
colors: true,
autoWatch: false,
autoWatchBatchDelay: 250,
restartOnFileChange: false,
usePolling: true,
reporters: [ 'spec' ],
singleRun: true,
browsers: [ 'ChromeHeadless' ],
captureTimeout: 60000,
pingTimeout: 5000,
proxies: {},
proxyValidateSSL: true,
preprocessors: [Object: null prototype] {},
preprocessor_priority: {},
urlRoot: '/',
upstreamProxy: undefined,
reportSlowerThan: 0,
loggers: [
{
type: 'console',
layout: { type: 'pattern', pattern: '%[%d{DATE}:%p [%c]: %]%m' }
}
],
transports: [ 'polling', 'websocket' ],
forceJSONP: false,
plugins: [
{
'framework:jasmine': [
'factory',
[Function: initJasmine] { '$inject': [ 'config.files' ] }
],
'reporter:karma-jasmine': [
'factory',
[Function: InjectKarmaJasmineReporter] {
'$inject': [ 'config.singleRun' ]
}
]
},
{
'reporter:spec': [
'type',
[Function: SpecReporter] {
'$inject': [ 'baseReporterDecorator', 'formatError', 'config' ]
}
]
},
{
'framework:@angular-devkit/build-angular': [
'factory',
[Function: init] { '$inject': [ 'config', 'emitter' ] }
],
'reporter:@angular-devkit/build-angular--sourcemap-reporter': [
'type',
[Function: sourceMapReporter] {
'$inject': [ 'baseReporterDecorator', 'config' ]
}
],
'reporter:@angular-devkit/build-angular--event-reporter': [
'type',
[Function: eventReporter] {
'$inject': [ 'baseReporterDecorator', 'config' ]
}
],
'middleware:@angular-devkit/build-angular--blocker': [ 'factory', [Function: requestBlocker] ],
'middleware:@angular-devkit/build-angular--fallback': [ 'factory', [Function: fallbackMiddleware] ]
},
{
'launcher:Chrome': [
'type',
[Function: ChromeBrowser] {
'$inject': [ 'baseBrowserDecorator', 'args' ]
}
],
'launcher:ChromeHeadless': [
'type',
[Function: ChromeHeadlessBrowser] {
'$inject': [ 'baseBrowserDecorator', 'args' ]
}
],
'launcher:ChromeCanary': [
'type',
[Function: ChromeCanaryBrowser] {
'$inject': [ 'baseBrowserDecorator', 'args' ]
}
],
'launcher:ChromeCanaryHeadless': [
'type',
[Function: ChromeCanaryHeadlessBrowser] {
'$inject': [ 'baseBrowserDecorator', 'args' ]
}
],
'launcher:Chromium': [
'type',
[Function: ChromiumBrowser] {
'$inject': [ 'baseBrowserDecorator', 'args' ]
}
],
'launcher:ChromiumHeadless': [ 'type', [Function: ChromiumHeadlessBrowser] ],
'launcher:Dartium': [
'type',
[Function: DartiumBrowser] {
'$inject': [ 'baseBrowserDecorator', 'args' ]
}
],
test: {
isJSFlags: [Function: isJSFlags],
sanitizeJSFlags: [Function: sanitizeJSFlags],
headlessGetOptions: [Function: headlessGetOptions],
canaryGetOptions: [Function: canaryGetOptions]
}
},
[Object: null prototype] {
'launcher:ChromeHeadlessCI': [ 'factory', [Function (anonymous)] ]
}
],
client: {
args: [],
useIframe: true,
runInParent: false,
captureConsole: true,
clearContext: true,
jasmine: {
timeoutInterval: 100000,
failFast: true,
oneFailurePerSpec: true
}
},
defaultClient: {
args: [],
useIframe: true,
runInParent: false,
captureConsole: true,
clearContext: true,
jasmine: {
timeoutInterval: 100000,
failFast: true,
oneFailurePerSpec: true
}
},
browserDisconnectTimeout: 2000,
browserDisconnectTolerance: 0,
browserNoActivityTimeout: 30000,
processKillTimeout: 2000,
concurrency: Infinity,
failOnEmptyTestSuite: true,
retryLimit: 2,
detached: false,
crossOriginAttribute: true,
browserSocketTimeout: 20000,
configFile: '/home/abdealijk/app/frontend/karma.conf.js',
buildWebpack: {
...
},
specReporter: { maxLogLines: 5, showSpecTiming: true },
customLaunchers: {
ChromeHeadlessCI: { base: 'ChromeHeadless', flags: [ '--no-sandbox' ] }
}
}
Environment:
- Jasmine core : v3.7.1
- karma-jasmine: v4.0.1
- Chrome 90
- Operating System and version (desktop or mobile): Ubuntu 18.04 on Windows 10 WSL 2
Metadata
Metadata
Assignees
Labels
No labels