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

Karma hangs with IE11 but debugger works and logs SUCCESS on Console with F5 #106

Open
AaronNGray opened this issue Jan 5, 2020 · 1 comment

Comments

@AaronNGray
Copy link

AaronNGray commented Jan 5, 2020

I am getting Karma running and launching IE11 but the tests are not running. On pressing the DEBUG button I get another tab, on pressing F12 and then F5 I get the tests running in the console window and passing.

Example https://github.com/AaronNGray/TypeScriptUnitTesting

git clone https://github.com/AaronNGray/TypeScriptUnitTesting
npm install
npm run test:ie

Other targets like Chrome are running fine.

npm run test:chrome
node --version
v13.2.0
npm --version
6.13.4
@AaronNGray
Copy link
Author

C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting>npm run test:ie

> [email protected] test:ie C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting
> karma start --browsers IE karma.conf.js

05 01 2020 17:47:24.336:DEBUG [config]: Loading config C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\karma.conf.js
05 01 2020 17:47:24.342:DEBUG [karma-server]: Final config Config {
  LOG_DISABLE: 'OFF',
  LOG_ERROR: 'ERROR',
  LOG_WARN: 'WARN',
  LOG_INFO: 'INFO',
  LOG_DEBUG: 'DEBUG',
  frameworks: [ 'mocha', 'chai', 'sinon' ],
  protocol: 'http:',
  port: 9876,
  listenAddress: '0.0.0.0',
  hostname: 'localhost',
  httpsServerConfig: {},
  basePath: 'C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting',
  files: [
    Pattern {
      pattern: 'C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/scripts/js/**/*.ts',
      served: true,
      included: true,
      watched: true,
      nocache: false,
      weight: [ 1, 1, 1, 0, 0, 0 ],
      type: undefined
    },
    Pattern {
      pattern: 'C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/scripts/test/**/*ts',
      served: true,
      included: true,
      watched: true,
      nocache: false,
      weight: [ 1, 1, 1, 0, 0, 0 ],
      type: undefined
    }
  ],
  browserConsoleLogOptions: { level: 'debug', format: '%b %T: %m', terminal: true },
  customContextFile: null,
  customDebugFile: null,
  customClientContextFile: null,
  exclude: [
    'C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/karma.conf.js'
  ],
  logLevel: 'DEBUG',
  colors: true,
  autoWatch: false,
  autoWatchBatchDelay: 250,
  restartOnFileChange: false,
  usePolling: false,
  reporters: [ 'mocha', 'coverage' ],
  singleRun: false,
  browsers: [ 'IE' ],
  captureTimeout: 60000,
  pingTimeout: 5000,
  proxies: {},
  proxyValidateSSL: true,
  preprocessors: [Object: null prototype] {
    'C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/**/*.ts': [ 'typescript' ]
  },
  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: [
    'karma-*',
    [Object: null prototype] {
      'launcher:FirefoxHeadless': [ 'factory', [Function (anonymous)] ],
      'launcher:ChromeHeadlessES6': [ 'factory', [Function (anonymous)] ]
    }
  ],
  client: {
    args: [],
    useIframe: true,
    runInParent: false,
    captureConsole: true,
    clearContext: true
  },
  defaultClient: {
    args: [],
    useIframe: true,
    runInParent: false,
    captureConsole: true,
    clearContext: true
  },
  browserDisconnectTimeout: 2000,
  browserDisconnectTolerance: 0,
  browserNoActivityTimeout: 30000,
  processKillTimeout: 2000,
  concurrency: Infinity,
  failOnEmptyTestSuite: true,
  retryLimit: 2,
  detached: false,
  crossOriginAttribute: true,
  browserSocketTimeout: 20000,
  cmd: 'start',
  configFile: 'C:\\Users\\aaron\\GitHub\\TypescriptUnitTesting\\TypeScriptUnitTesting\\karma.conf.js',
  typescriptPreprocessor: {
    options: { sourceMap: true, noResolve: false },
    transformPath: [Function: transformPath]
  },
  customLaunchers: {
    FirefoxHeadless: { base: 'Firefox', flags: [ '-headless' ] },
    ChromeHeadlessES6: { base: 'ChromeHeadless', flags: [ '' ] }
  }
}
05 01 2020 17:47:24.344:DEBUG [plugin]: Loading karma-* from C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules
05 01 2020 17:47:24.345:DEBUG [plugin]: Loading plugin C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules/karma-chai.
05 01 2020 17:47:24.347:DEBUG [plugin]: Loading plugin C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules/karma-chrome-launcher.
05 01 2020 17:47:24.354:DEBUG [plugin]: Loading plugin C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules/karma-coverage.
05 01 2020 17:47:24.608:DEBUG [plugin]: Loading plugin C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules/karma-edge-launcher.
05 01 2020 17:47:24.611:DEBUG [plugin]: Loading plugin C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules/karma-firefox-launcher.
05 01 2020 17:47:24.614:DEBUG [plugin]: Loading plugin C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules/karma-fixture.
05 01 2020 17:47:24.616:DEBUG [plugin]: Loading plugin C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules/karma-html2js-preprocessor.
05 01 2020 17:47:24.618:DEBUG [plugin]: Loading plugin C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules/karma-ie-launcher.
05 01 2020 17:47:24.620:DEBUG [plugin]: Loading plugin C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules/karma-json-fixtures-preprocessor.
05 01 2020 17:47:24.622:DEBUG [plugin]: Loading plugin C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules/karma-mocha.
05 01 2020 17:47:24.625:DEBUG [plugin]: Loading plugin C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules/karma-mocha-reporter.
05 01 2020 17:47:24.641:DEBUG [plugin]: Loading plugin C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules/karma-safari-launcher.
05 01 2020 17:47:24.643:DEBUG [plugin]: Loading plugin C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules/karma-sinon.
05 01 2020 17:47:24.648:DEBUG [plugin]: Loading plugin C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules/karma-typescript-preprocessor.
05 01 2020 17:47:24.649:DEBUG [plugin]: Loading inlined plugin (defining launcher:FirefoxHeadless, launcher:ChromeHeadlessES6).
05 01 2020 17:47:24.792:DEBUG [web-server]: Instantiating middleware
05 01 2020 17:47:24.794:DEBUG [reporter]: Trying to load reporter: mocha
05 01 2020 17:47:24.796:DEBUG [reporter]: Trying to load color-version of reporter: mocha (mocha_color)
05 01 2020 17:47:24.796:DEBUG [reporter]: Couldn't load color-version.
05 01 2020 17:47:24.797:DEBUG [reporter]: Trying to load reporter: coverage
05 01 2020 17:47:24.798:DEBUG [reporter]: Trying to load color-version of reporter: coverage (coverage_color)
05 01 2020 17:47:24.798:DEBUG [reporter]: Couldn't load color-version.
05 01 2020 17:47:24.826:DEBUG [preprocessor.typescript]: Processing "C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/scripts/js/calculator.ts".
05 01 2020 17:47:24.872:DEBUG [preprocessor.typescript]: Processing "C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/scripts/test/calculator-tests_Mocha.ts".
05 01 2020 17:47:24.894:INFO [karma-server]: Karma v4.4.1 server started at http://0.0.0.0:9876/
05 01 2020 17:47:24.895:INFO [launcher]: Launching browsers IE with concurrency unlimited
05 01 2020 17:47:24.901:INFO [launcher]: Starting browser IE
05 01 2020 17:47:24.901:DEBUG [launcher]: null -> BEING_CAPTURED
05 01 2020 17:47:24.902:DEBUG [temp-dir]: Creating temp dir at C:\Users\aaron\AppData\Local\Temp\karma-60995924
05 01 2020 17:47:24.904:DEBUG [launcher]: C:\Program Files\Internet Explorer\iexplore.exe http://localhost:9876/?id=60995924
05 01 2020 17:47:25.124:DEBUG [web-server]: serving: C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules\karma\static/client.html
05 01 2020 17:47:25.161:DEBUG [web-server]: serving: C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules\karma\static/karma.js
05 01 2020 17:47:25.214:DEBUG [karma-server]: A browser has connected on socket p7JGJBULARiuXF4_AAAA
05 01 2020 17:47:25.234:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=p7JGJBULARiuXF4_AAAA
05 01 2020 17:47:25.256:DEBUG [IE 11.0.0 (Windows 10.0.0)]: undefined -> CONNECTED
05 01 2020 17:47:25.257:INFO [IE 11.0.0 (Windows 10.0.0)]: Connected on socket p7JGJBULARiuXF4_AAAA with id 60995924
05 01 2020 17:47:25.258:DEBUG [launcher]: BEING_CAPTURED -> CAPTURED
05 01 2020 17:47:25.259:DEBUG [launcher]: IE (id 60995924) captured in 0.362 secs
05 01 2020 17:48:07.878:DEBUG [middleware:karma]: custom files null null null
05 01 2020 17:48:07.880:DEBUG [middleware:karma]: Serving static request /debug.html
05 01 2020 17:48:07.882:DEBUG [web-server]: serving: C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules\karma\static/debug.html
05 01 2020 17:48:07.895:DEBUG [middleware:source-files]: Requesting /base/node_modules/sinon/pkg/sinon.js
05 01 2020 17:48:07.895:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/sinon/pkg/sinon.js
05 01 2020 17:48:07.901:DEBUG [web-server]: serving (cached): C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/sinon/pkg/sinon.js
05 01 2020 17:48:07.904:DEBUG [middleware:source-files]: Requesting /base/node_modules/chai/chai.js
05 01 2020 17:48:07.904:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/chai/chai.js
05 01 2020 17:48:07.906:DEBUG [middleware:source-files]: Requesting /base/node_modules/karma-chai/adapter.js
05 01 2020 17:48:07.907:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/karma-chai/adapter.js
05 01 2020 17:48:07.909:DEBUG [middleware:source-files]: Requesting /base/node_modules/mocha/mocha.js
05 01 2020 17:48:07.910:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/mocha/mocha.js
05 01 2020 17:48:07.912:DEBUG [web-server]: serving (cached): C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/chai/chai.js
05 01 2020 17:48:07.914:DEBUG [web-server]: serving (cached): C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/karma-chai/adapter.js
05 01 2020 17:48:07.914:DEBUG [web-server]: serving (cached): C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/mocha/mocha.js
05 01 2020 17:48:07.918:DEBUG [middleware:source-files]: Requesting /base/node_modules/karma-mocha/lib/adapter.js
05 01 2020 17:48:07.919:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/karma-mocha/lib/adapter.js
05 01 2020 17:48:07.921:DEBUG [web-server]: serving (cached): C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/karma-mocha/lib/adapter.js
05 01 2020 17:48:07.922:DEBUG [web-server]: serving: C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules\karma\static/context.js
05 01 2020 17:48:07.923:DEBUG [middleware:source-files]: Requesting /base/scripts/js/calculator.js
05 01 2020 17:48:07.924:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/scripts/js/calculator.js
05 01 2020 17:48:07.925:DEBUG [middleware:source-files]: Requesting /base/scripts/test/calculator-tests_Mocha.js
05 01 2020 17:48:07.926:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/scripts/test/calculator-tests_Mocha.js
05 01 2020 17:48:07.927:DEBUG [web-server]: serving (cached): C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/scripts/js/calculator.js
05 01 2020 17:48:07.930:DEBUG [web-server]: serving (cached): C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/scripts/test/calculator-tests_Mocha.js
05 01 2020 17:48:07.931:DEBUG [web-server]: serving: C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules\karma\static/debug.js
05 01 2020 17:48:12.837:DEBUG [middleware:source-files]: Requesting /base/scripts/js/calculator.js.map
05 01 2020 17:48:12.839:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/scripts/js/calculator.js.map
05 01 2020 17:48:12.840:WARN [web-server]: 404: /base/scripts/js/calculator.js.map
05 01 2020 17:48:12.842:DEBUG [middleware:source-files]: Requesting /base/scripts/test/calculator-tests_Mocha.js.map
05 01 2020 17:48:12.842:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/scripts/test/calculator-tests_Mocha.js.map
05 01 2020 17:48:12.844:WARN [web-server]: 404: /base/scripts/test/calculator-tests_Mocha.js.map
05 01 2020 17:48:12.875:DEBUG [middleware:karma]: custom files null null null
05 01 2020 17:48:12.877:DEBUG [middleware:karma]: Serving static request /debug.html
05 01 2020 17:48:12.879:DEBUG [web-server]: serving (cached): C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules\karma\static/debug.html
05 01 2020 17:48:12.885:DEBUG [web-server]: serving (cached): C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules\karma\static/context.js
05 01 2020 17:48:12.900:DEBUG [web-server]: serving (cached): C:\Users\aaron\GitHub\TypescriptUnitTesting\TypeScriptUnitTesting\node_modules\karma\static/debug.js
05 01 2020 17:48:12.906:DEBUG [middleware:source-files]: Requesting /base/node_modules/sinon/pkg/sinon.js
05 01 2020 17:48:12.907:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/sinon/pkg/sinon.js
05 01 2020 17:48:12.908:DEBUG [web-server]: serving (cached): C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/sinon/pkg/sinon.js
05 01 2020 17:48:12.927:DEBUG [middleware:source-files]: Requesting /base/node_modules/chai/chai.js
05 01 2020 17:48:12.928:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/chai/chai.js
05 01 2020 17:48:12.930:DEBUG [web-server]: serving (cached): C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/chai/chai.js
05 01 2020 17:48:12.940:DEBUG [middleware:source-files]: Requesting /base/node_modules/karma-chai/adapter.js
05 01 2020 17:48:12.941:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/karma-chai/adapter.js
05 01 2020 17:48:12.942:DEBUG [web-server]: serving (cached): C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/karma-chai/adapter.js
05 01 2020 17:48:12.946:DEBUG [middleware:source-files]: Requesting /base/node_modules/mocha/mocha.js
05 01 2020 17:48:12.947:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/mocha/mocha.js
05 01 2020 17:48:12.947:DEBUG [web-server]: serving (cached): C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/mocha/mocha.js
05 01 2020 17:48:12.981:DEBUG [middleware:source-files]: Requesting /base/node_modules/karma-mocha/lib/adapter.js
05 01 2020 17:48:12.983:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/karma-mocha/lib/adapter.js
05 01 2020 17:48:12.984:DEBUG [web-server]: serving (cached): C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/node_modules/karma-mocha/lib/adapter.js
05 01 2020 17:48:12.989:DEBUG [middleware:source-files]: Requesting /base/scripts/js/calculator.js
05 01 2020 17:48:12.990:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/scripts/js/calculator.js
05 01 2020 17:48:12.991:DEBUG [web-server]: serving (cached): C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/scripts/js/calculator.js
05 01 2020 17:48:12.994:DEBUG [middleware:source-files]: Requesting /base/scripts/test/calculator-tests_Mocha.js
05 01 2020 17:48:12.995:DEBUG [middleware:source-files]: Fetching C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/scripts/test/calculator-tests_Mocha.js
05 01 2020 17:48:12.996:DEBUG [web-server]: serving (cached): C:/Users/aaron/GitHub/TypescriptUnitTesting/TypeScriptUnitTesting/scripts/test/calculator-tests_Mocha.js
05 01 2020 18:00:14.709:DEBUG [launcher]: Disconnecting all browsers
05 01 2020 18:00:14.711:DEBUG [launcher]: CAPTURED -> BEING_KILLED
05 01 2020 18:00:14.714:DEBUG [launcher]: BEING_KILLED -> BEING_FORCE_KILLED
Terminate batch job (Y/N)? 05 01 2020 18:00:14.832:DEBUG [launcher]: Killed extra IE process 21208
05 01 2020 18:00:14.833:DEBUG [launcher]: Process IE exited with code null and signal SIGTERM
05 01 2020 18:00:14.835:DEBUG [temp-dir]: Cleaning temp dir C:\Users\aaron\AppData\Local\Temp\karma-60995924
05 01 2020 18:00:14.837:DEBUG [launcher]: Finished all browsers
05 01 2020 18:00:14.837:DEBUG [launcher]: BEING_FORCE_KILLED -> FINISHED
05 01 2020 18:00:14.838:DEBUG [launcher]: FINISHED -> FINISHED
y

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

1 participant