Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome always close when karma finish run test #2991

Closed
ariawanzero opened this issue May 7, 2018 · 8 comments
Closed

Chrome always close when karma finish run test #2991

ariawanzero opened this issue May 7, 2018 · 8 comments

Comments

@ariawanzero
Copy link

ariawanzero commented May 7, 2018

Expected behaviour

I want chrome browser still open and show result jasmine test

Actual behaviour

Browser always close when karma test run finish

Environment Details

I'm using starter pack on angular. Karma Version on package.json is ~1.7.1

My Config:

module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../coverage'),
reports: ['html', 'lcovonly'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false
});
};

Anyone having same problem or issue, can inform me

@johnjbarton
Copy link
Contributor

logLevel: config.LOG_INFO,

Try running with DEBUG

@ariawanzero
Copy link
Author

already try it on project but launcher keep closing after karma finish. I think singleRun: false not working on angular starter this is my version i use
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~1.7.1",
"karma-chrome-launcher": "~2.0.0",
"karma-coverage-istanbul-reporter": "~1.4.2",
"karma-jasmine": "~1.1.1",
"karma-jasmine-html-reporter": "^0.2.2",

@johnjbarton
Copy link
Contributor

The purpose of DEBUG is to look in the log for the reason karma-runner exits.

You could try installing 2.0.2 and jasmine 3.0.

@beartums
Copy link

beartums commented May 9, 2018

I'm seeing the same problem on version 2.0.2. I upgraded this morning (also to angular 6) and though the window was staying open this morning, it now closes immediately after the test, no matter what the autoWatch and singleRun settings are in karma.conf.ts.

DEBUG log:

09 05 2018 19:46:34.893:DEBUG [config]: Loading config D:\Data\GrifNas\Eric\Development\Personal\tms\karma.conf.js
09 05 2018 19:46:34.897:DEBUG [config]: autoWatch set to false, because of singleRun
09 05 2018 19:46:34.899:DEBUG [plugin]: Loading inlined plugin (defining framework:jasmine).
09 05 2018 19:46:34.899:DEBUG [plugin]: Loading inlined plugin (defining launcher:Chrome, launcher:ChromeHeadless, launcher:ChromeCanary, launcher:ChromeCanaryHeadless, launcher:Chromium, launcher:ChromiumHeadless, launcher:Dartium, test).
09 05 2018 19:46:34.899:DEBUG [plugin]: Loading inlined plugin (defining reporter:kjhtml).
09 05 2018 19:46:34.900:DEBUG [plugin]: Loading inlined plugin (defining reporter:coverage-istanbul).
09 05 2018 19:46:34.900:DEBUG [plugin]: Loading inlined plugin (defining framework:@angular-devkit/build-angular, reporter:@angular-devkit/build-angular--sourcemap-reporter, reporter:@angular-devkit/build-angular--event-reporter, middleware:@angular-devkit/build-angular--blocker, middleware:@angular-devkit/build-angular--fallback).
 10% building modules 1/1 modules 0 active09 05 2018 19:46:35.050:DEBUG [web-server]: Instantiating middleware
09 05 2018 19:46:35.052:DEBUG [reporter]: Trying to load reporter: @angular-devkit/build-angular--sourcemap-reporter
09 05 2018 19:46:35.052:DEBUG [reporter]: Trying to load color-version of reporter: @angular-devkit/build-angular--sourcemap-reporter (@angular-devkit/build-angular--sourcemap-reporter_color)
09 05 2018 19:46:35.053:DEBUG [reporter]: Couldn't load color-version.
09 05 2018 19:46:35.053:DEBUG [reporter]: Trying to load reporter: @angular-devkit/build-angular--event-reporter
09 05 2018 19:46:35.054:DEBUG [reporter]: Trying to load color-version of reporter: @angular-devkit/build-angular--event-reporter (@angular-devkit/build-angular--event-reporter_color)
09 05 2018 19:46:35.054:DEBUG [reporter]: Couldn't load color-version.
09 05 2018 19:46:35.064:DEBUG [reporter]: Trying to load reporter: kjhtml
09 05 2018 19:46:35.065:DEBUG [reporter]: Trying to load color-version of reporter: kjhtml (kjhtml_color)
09 05 2018 19:46:35.067:DEBUG [reporter]: Couldn't load color-version.
(node:21552) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
09 05 2018 19:46:39.472:INFO [karma]: Karma v2.0.2 server started at http://0.0.0.0:9876/
09 05 2018 19:46:39.473:INFO [launcher]: Launching browser Chrome with unlimited concurrency
09 05 2018 19:46:39.478:INFO [launcher]: Starting browser Chrome
09 05 2018 19:46:39.479:DEBUG [temp-dir]: Creating temp dir at C:\Users\eric\AppData\Local\Temp\karma-35427658
09 05 2018 19:46:39.481:DEBUG [launcher]: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --user-data-dir=C:\Users\eric\AppData\Local\Temp\karma-35427658 --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate --disable-background-timer-throttling --disable-renderer-backgrounding --disable-device-discovery-notifications http://localhost:9876/?id=35427658
09 05 2018 19:46:45.632:DEBUG [web-server]: serving: D:\Data\GrifNas\Eric\Development\Personal\tms\node_modules\karma\static/client.html
09 05 2018 19:46:45.648:DEBUG [web-server]: serving: D:\Data\GrifNas\Eric\Development\Personal\tms\node_modules\karma\static/karma.js
09 05 2018 19:46:45.716:DEBUG [karma]: A browser has connected on socket WdXKdGbmw_eiskybAAAA
09 05 2018 19:46:45.719:DEBUG [web-server]: serving: D:\Data\GrifNas\Eric\Development\Personal\tms\node_modules\karma\static/favicon.ico
09 05 2018 19:46:45.735:INFO [Chrome 66.0.3359 (Windows 7 0.0.0)]: Connected on socket WdXKdGbmw_eiskybAAAA with id 35427658
09 05 2018 19:46:45.738:DEBUG [launcher]: Chrome (id 35427658) captured in 6.264 secs
09 05 2018 19:46:45.745:DEBUG [middleware:karma]: custom files D:\Data\GrifNas\Eric\Development\Personal\tms\node_modules\@angular-devkit\build-angular\src\angular-cli-files\plugins/karma-context.html D:\Data\GrifNas\Eric\Development\Personal\tms\node_modules\@angular-devkit\build-angular\src\angular-cli-files\plugins/karma-debug.html null
09 05 2018 19:46:45.747:DEBUG [middleware:karma]: Serving customContextFile D:\Data\GrifNas\Eric\Development\Personal\tms\node_modules\@angular-devkit\build-angular\src\angular-cli-files\plugins/karma-context.html
09 05 2018 19:46:45.749:DEBUG [web-server]: serving: D:\Data\GrifNas\Eric\Development\Personal\tms\node_modules\@angular-devkit\build-angular\src\angular-cli-files\plugins/karma-context.html
09 05 2018 19:46:45.757:DEBUG [middleware:source-files]: Requesting /_karma_webpack_/runtime.js /
09 05 2018 19:46:45.758:DEBUG [middleware:source-files]: Fetching /_karma_webpack_/runtime.js
09 05 2018 19:46:45.763:DEBUG [web-server]: serving: D:\Data\GrifNas\Eric\Development\Personal\tms\node_modules\karma\static/context.js
09 05 2018 19:46:45.765:DEBUG [middleware:source-files]: Requesting /base/node_modules/karma-jasmine-html-reporter/src/css/jasmine.css?c612dd734f1db56a35db7ca01f443cec8f616c09 /
09 05 2018 19:46:45.766:DEBUG [middleware:source-files]: Fetching D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/karma-jasmine-html-reporter/src/css/jasmine.css
09 05 2018 19:46:45.768:DEBUG [web-server]: serving (cached): D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/karma-jasmine-html-reporter/src/css/jasmine.css
09 05 2018 19:46:45.769:DEBUG [middleware:source-files]: Requesting /_karma_webpack_/polyfills.js /
09 05 2018 19:46:45.770:DEBUG [middleware:source-files]: Fetching /_karma_webpack_/polyfills.js
09 05 2018 19:46:45.773:DEBUG [middleware:source-files]: Requesting /base/node_modules/source-map-support/browser-source-map-support.js?a2ddfcb5e05735113feef40f557d84ceeee35a10 /
09 05 2018 19:46:45.774:DEBUG [middleware:source-files]: Fetching D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/source-map-support/browser-source-map-support.js
09 05 2018 19:46:45.775:DEBUG [web-server]: serving (cached): D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/source-map-support/browser-source-map-support.js
09 05 2018 19:46:45.780:DEBUG [middleware:source-files]: Requesting /base/node_modules/karma-source-map-support/lib/client.js?fcb459e84379f1ce8e91fe200d87463f3780ca1b /
09 05 2018 19:46:45.781:DEBUG [middleware:source-files]: Fetching D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/karma-source-map-support/lib/client.js
09 05 2018 19:46:45.782:DEBUG [web-server]: serving (cached): D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/karma-source-map-support/lib/client.js
09 05 2018 19:46:45.786:DEBUG [middleware:source-files]: Requesting /base/node_modules/jasmine-core/lib/jasmine-core/jasmine.js?daba65c98fa088349a3e9d7df843a63405ccfc15 /
09 05 2018 19:46:45.787:DEBUG [middleware:source-files]: Fetching D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/jasmine-core/lib/jasmine-core/jasmine.js
09 05 2018 19:46:45.788:DEBUG [web-server]: serving (cached): D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/jasmine-core/lib/jasmine-core/jasmine.js 09 05 2018 19:46:45.791:DEBUG [middleware:source-files]: Requesting /base/node_modules/karma-jasmine/lib/boot.js?945a38bf4e45ad2770eb94868231905a04a0bd3e /
09 05 2018 19:46:45.792:DEBUG [middleware:source-files]: Fetching D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/karma-jasmine/lib/boot.js
09 05 2018 19:46:45.793:DEBUG [web-server]: serving (cached): D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/karma-jasmine/lib/boot.js
09 05 2018 19:46:45.795:DEBUG [middleware:source-files]: Requesting /base/node_modules/karma-jasmine/lib/adapter.js?6cf71867f538f40db053c1775b2c56a83696375c /
09 05 2018 19:46:45.795:DEBUG [middleware:source-files]: Fetching D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/karma-jasmine/lib/adapter.js
09 05 2018 19:46:45.796:DEBUG [web-server]: serving (cached): D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/karma-jasmine/lib/adapter.js
09 05 2018 19:46:45.797:DEBUG [middleware:source-files]: Requesting /base/node_modules/karma-jasmine-html-reporter/src/lib/html.jasmine.reporter.js?04d85f096289dc3cb5ede24a747fd00dbdc7833a /
09 05 2018 19:46:45.798:DEBUG [middleware:source-files]: Fetching D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/karma-jasmine-html-reporter/src/lib/html.jasmine.reporter.js
09 05 2018 19:46:45.800:DEBUG [web-server]: serving (cached): D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/karma-jasmine-html-reporter/src/lib/html.jasmine.reporter.js
09 05 2018 19:46:45.802:DEBUG [middleware:source-files]: Requesting /base/node_modules/karma-jasmine-html-reporter/src/lib/adapter.js?06e808c0b15d63d6b5c63f9694c5568792485891 /
09 05 2018 19:46:45.803:DEBUG [middleware:source-files]: Fetching D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/karma-jasmine-html-reporter/src/lib/adapter.js
09 05 2018 19:46:45.804:DEBUG [web-server]: serving (cached): D:/Data/GrifNas/Eric/Development/Personal/tms/node_modules/karma-jasmine-html-reporter/src/lib/adapter.js
09 05 2018 19:46:45.805:DEBUG [middleware:source-files]: Requesting /_karma_webpack_/scripts.js /
09 05 2018 19:46:45.806:DEBUG [middleware:source-files]: Fetching /_karma_webpack_/scripts.js
09 05 2018 19:46:45.809:DEBUG [middleware:source-files]: Requesting /_karma_webpack_/vendor.js /
09 05 2018 19:46:45.809:DEBUG [middleware:source-files]: Fetching /_karma_webpack_/vendor.js
09 05 2018 19:46:45.812:DEBUG [middleware:source-files]: Requesting /_karma_webpack_/main.js /
09 05 2018 19:46:45.813:DEBUG [middleware:source-files]: Fetching /_karma_webpack_/main.js
09 05 2018 19:46:46.023:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=WdXKdGbmw_eiskybAAAA
09 05 2018 19:46:46.205:DEBUG [middleware:source-files]: Requesting /_karma_webpack_/vendor.js /
09 05 2018 19:46:46.205:DEBUG [middleware:source-files]: Fetching /_karma_webpack_/vendor.js
09 05 2018 19:46:46.306:DEBUG [middleware:source-files]: Requesting /_karma_webpack_/vendor.js /
09 05 2018 19:46:46.307:DEBUG [middleware:source-files]: Fetching /_karma_webpack_/vendor.js
09 05 2018 19:46:47.611:DEBUG [middleware:source-files]: Requesting /_karma_webpack_/main.js /
09 05 2018 19:46:47.612:DEBUG [middleware:source-files]: Fetching /_karma_webpack_/main.js
09 05 2018 19:46:47.620:DEBUG [middleware:source-files]: Requesting /_karma_webpack_/main.js /
09 05 2018 19:46:47.621:DEBUG [middleware:source-files]: Fetching /_karma_webpack_/main.js
Chrome 66.0.3359 (Windows 7 0.0.0): Executed 13 of 62 SUCCESS (0 secs / 0.118 secs)
LOG: 'dropMovementComponentData', Object{movementType: 'Unload', confirm: false, showExpected: true, drop: Object{}, dropMovement: Object{dropMovementDetails: []}LOG: 'dropMovementComponentData', Object{movementType: 'Unload', confirm: false, showExpected: true, drop: Object{}, dropMovement: Object{dropMovementDetails: []}, dropMovementDetails: []}
Chrome 66.0.3359 (Windows 7 0.0.0): Executed 13 of 62 SUCCESS (0 secs / 0.118 secs)
LOG: 'dropMovementComponentData', Object{movementType: 'Unload', confirm: false, showExpected: true, drop: Object{}, dropMovement: Object{dropMovementDetails: []}Chrome 66.0.3359 (Windows 7 0.0.0): Executed 17 of 62 SUCCESS (0 secs / 0.338 secs)
09 05 2018 19:46:48.227:DEBUG [middleware:source-files]: Requesting /assets/favicon-192x192.png /
Chrome 66.0.3359 (Windows 7 0.0.0): Executed 62 of 62 SUCCESS (0.69 secs / 0.619 secs)
09 05 2018 19:46:48.550:DEBUG [karma]: Run complete, exiting.
09 05 2018 19:46:48.563:DEBUG [launcher]: Disconnecting all browsers
09 05 2018 19:46:48.592:DEBUG [launcher]: Process Chrome exited with code 0
09 05 2018 19:46:48.593:DEBUG [temp-dir]: Cleaning temp dir C:\Users\eric\AppData\Local\Temp\karma-35427658
09 05 2018 19:46:48.712:DEBUG [launcher]: Finished all browsers

karma.conf.ts:

module.exports = function (config) {
  config.set({
    basePath: '',
    frameworks: ['jasmine', '@angular-devkit/build-angular'],
    plugins: [
      require('karma-jasmine'),
      require('karma-chrome-launcher'),
      require('karma-jasmine-html-reporter'),
      require('karma-coverage-istanbul-reporter'),
      require('@angular-devkit/build-angular/plugins/karma')
    ],
    client:{
      clearContext: false // leave Jasmine Spec Runner output visible in browser
    },
    coverageIstanbulReporter: {
      dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
      fixWebpackSourcePaths: true
    },
    angularCli: {
      environment: 'dev'
    },
    reporters: ['progress', 'kjhtml'],
    port: 9876,
    colors: true,
    logLevel: config.LOG_DEBUG,
    autoWatch: true,
    browsers: ['Chrome'],
    singleRun: false
  });
};

Interestingly, the second line in the log is autoWatch set to false, because of singleRun despite the singleRun: false in the config file.

Would love to know how to fix this. Thanks!

@johnjbarton
Copy link
Contributor

autoWatch set to false, because of singleRun

please add a line like

console.log(`config.singleRun ${config.singleRun}`, config);

right after the config is parsed:
https://github.com/karma-runner/karma/blob/master/lib/server.js#L83
to see if your config really has singleRun set.

@beartums
Copy link

beartums commented May 10, 2018

Thanks for the feedback! As requested, see the output below.

A couple of things:

  • I uninstalled Karma yesterday and reinstalled v1.2.0 and the problem persisted,
  • I added the cliOptions.configFile to the console.log statement, which confirms that the file that has singleRun: false is the file it is loading,
  • After seeing the output below, I renamed the specified karma.conf.js file (which is listed in my previous comment and has singleRun: false) to karmax.conf.js and, as expected, got the karma.conf.js does not exist! error
  • I just now included the cliOptions object in the log and that is where the singleRun = true is coming from, overwriting the value in the conf.js file, so it looks like this might be an Angular 6.0.0 problem. I haven't been able to track it down yet (though commenting out an options.singleRun watcher in @angular-devkit keeps the browser open -- while somehow disabling reloading on changes).
config.singleRun true cliOptions.configFile D:\Data\GrifNas\Eric\Development\Personal\tms\karma.conf.js 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: 'D:/Data/GrifNas/Eric/Development/Personal/tms',                                                                                     
  files: [],                                                                                                                                     
  browserConsoleLogOptions: { level: 'debug', format: '%b %T: %m', terminal: true },                                                             
  customContextFile: null,                                                                                                                       
  customDebugFile: null,                                                                                                                         
  customClientContextFile: null,                                                                                                                 
  exclude:                                                                                                                                       
   [ 'D:/Data/GrifNas/Eric/Development/Personal/tms/karma.conf.js' ],                                                                            
  logLevel: 'DEBUG',                                                                                                                             
  colors: true,                                                                                                                                  
  autoWatch: false,                                                                                                                              
  autoWatchBatchDelay: 250,                                                                                                                      
  restartOnFileChange: false,                                                                                                                    
  usePolling: false,                                                                                                                             
  reporters: [ 'progress', 'kjhtml' ],                                                                                                           
  singleRun: true,                                                                                                                               
  browsers: [ 'Chrome' ],                                                                                                                        
  captureTimeout: 60000,                                                                                                                         
  proxies: {},                                                                                                                                   
  proxyValidateSSL: true,                                                                                                                        
  preprocessors: {},                                                                                                                             
  urlRoot: '/',                                                                                                                                  
  upstreamProxy: undefined,                                                                                                                      
  reportSlowerThan: 0,                                                                                                                           
  loggers: [ { type: 'console', layout: [Object] } ],                                                                                            
  transports: [ 'polling', 'websocket' ],                                                                                                        
  forceJSONP: false,                                                                                                                             
  plugins:                                                                                                                                       
   [ { 'framework:jasmine': [Array] },                                                                                                           
     { 'launcher:Chrome': [Array],                                                                                                               
       'launcher:ChromeHeadless': [Array],                                                                                                       
       'launcher:ChromeCanary': [Array],                                                                                                         
       'launcher:ChromeCanaryHeadless': [Array],                                                                                                 
       'launcher:Chromium': [Array],                                                                                                             
       'launcher:ChromiumHeadless': [Array],                                                                                                     
       'launcher:Dartium': [Array],                                                                                                              
       test: [Object] },                                                                                                                         
     { 'reporter:kjhtml': [Array] },                                                                                                             
     { 'reporter:coverage-istanbul': [Array] },                                                                                                  
     { 'framework:@angular-devkit/build-angular': [Array],                                                                                       
       'reporter:@angular-devkit/build-angular--sourcemap-reporter': [Array],                                                                    
       'reporter:@angular-devkit/build-angular--event-reporter': [Array],                                                                        
       'middleware:@angular-devkit/build-angular--blocker': [Array],                                                                             
       'middleware:@angular-devkit/build-angular--fallback': [Array] } ],                                                                        
  client:                                                                                                                                        
   { args: [],                                                                                                                                   
     useIframe: true,                                                                                                                            
     runInParent: false,                                                                                                                         
     captureConsole: true,                                                                                                                       
     clearContext: false },                                                                                                                      
  defaultClient:                                                                                                                                 
   { args: [],                                                                                                                                   
     useIframe: true,                                                                                                                            
     runInParent: false,                                                                                                                         
     captureConsole: true,                                                                                                                       
     clearContext: false },                                                                                                                      
  browserDisconnectTimeout: 2000,                                                                                                                
  browserDisconnectTolerance: 0,                                                                                                                 
  browserNoActivityTimeout: 10000,                                                                                                               
  processKillTimeout: 2000,                                                                                                                      
  concurrency: Infinity,                                                                                                                         
  failOnEmptyTestSuite: true,                                                                                                                    
  retryLimit: 2,                                                                                                                                 
  detached: false,                                                                                                                               
  crossOriginAttribute: true,                                                                                                                    
  buildWebpack:                                                                                                                                  
   { root: 'D:\\Data\\GrifNas\\Eric\\Development\\Personal\\tms',                                                                                
     projectRoot: 'D:\\Data\\GrifNas\\Eric\\Development\\Personal\\tms',                                                                         
     options:                                                                                                                                    
      { main: 'src/test.ts',                                                                                                                     
        karmaConfig: './karma.conf.js',                                                                                                          
        polyfills: 'src/polyfills.ts',                                                                                                           
        tsConfig: 'src/tsconfig.spec.json',                                                                                                      
        scripts: [],                                                                                                                             
        styles: [Array],                                                                                                                         
        assets: [Array],                                                                                                                         
        sourceMap: true,                                                                                                                         
        progress: true,                                                                                                                          
        watch: false,                                                                                                                            
        preserveSymlinks: false,                                                                                                                 
        codeCoverage: false,                                                                                                                     
        codeCoverageExclude: [],                                                                                                                 
        fileReplacements: [],                                                                                                                    
        stylePreprocessorOptions: [Object],                                                                                                      
        environment: undefined,                                                                                                                  
        poll: undefined,                                                                                                                         
        browsers: undefined,                                                                                                                     
        root: '' },                                                                                                                              
     webpackConfig:                                                                                                                              
      { mode: 'development',                                                                                                                     
        devtool: 'inline-source-map',                                                                                                            
        resolve: [Object],                                                                                                                       
        resolveLoader: [Object],                                                                                                                 
        context: 'D:\\Data\\GrifNas\\Eric\\Development\\Personal\\tms',                                                                          
        entry: [Object],                                                                                                                         
        output: [Object],                                                                                                                        
        performance: [Object],                                                                                                                   
        module: [Object],                                                                                                                        
        optimization: [Object],                                                                                                                  
        plugins: [Array],                                                                                                                        
        loader: [Object] },                                                                                                                      
     successCb: [Function: successCb],                                                                                                           
     failureCb: [Function: failureCb] },                                                                                                         
  configFile: 'D:\\Data\\GrifNas\\Eric\\Development\\Personal\\tms\\karma.conf.js',                                                              
  coverageIstanbulReporter:                                                                                                                      
   { dir: 'D:\\Data\\GrifNas\\Eric\\Development\\Personal\\tms\\coverage',                                                                       
     reports: [ 'html', 'lcovonly' ],                                                                                                            
     fixWebpackSourcePaths: true },                                                                                                              
  angularCli: { environment: 'dev' } }                                                                                                           

thanks!

@beartums
Copy link

beartums commented May 10, 2018

Confirmed. This is an angular 6.0.0 bug. Sorry for bothering you.

workaround is run with ng test --watch. hat tip Ryan McCormick

issue logged here for angular-cli team

@ariawanzero
Copy link
Author

thanks for information for all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants