question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The base reporter prints the browser object instead of just name

See original GitHub issue

https://github.com/karma-runner/karma/blob/c311ac00cef4a957f889ed613238793c0ffa95a2/lib/reporters/base.js#L40

Expected HeadlessChrome 75.0.3765 (Linux 0.0.0) and got:

Browser {
  id: '72739917',
  fullName: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 ' +
    '(KHTML, like Gecko) HeadlessChrome/75.0.3765.0 ' +
    'Safari/537.36',
  name: 'HeadlessChrome 0.0.0 (Linux 0.0.0)',
  state: 1,
  lastResult: [Result],
  disconnectsCount: 0,
  init: [Function],
  isReady: [Function],
  toString: [Function],
  onKarmaError: [Function],
  onInfo: [Function],
  onStart: [Function],
  onComplete: [Function],
  onDisconnect: [Function],
  reconnect: [Function],
  onResult: [Function],
  serialize: [Function],
  execute: [Function]
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
robertknightcommented, Jun 5, 2019

This appears to be a bug/issue in Node itself. The Browser class defines a toString method and the current master branch of Node will use that. See https://github.com/nodejs/node/commit/5518664d41b8916dfbe2eca2180d760db632748e#diff-91f6ca3fae2551d5959872b74c18946a

0reactions
davidje13commented, Jun 16, 2019

I can confirm that having observed this issue with node 12.1.0, it is resolved after upgrading to node 12.4.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

No coverage report generated for large project #434 - GitHub
We are currently using karma-coverage-istanbul-reporter because we have yet to get successful coverage reports with karma-coverage.
Read more >
protractor-jasmine2-html-reporter doesn't consolidate results ...
Yeah, I figured out the issue, the html-reporter needs the browser name for detecting the screenshots and the browser object does not exist...
Read more >
window.location Cheatsheet | SamanthaMing.com
The window.location object can be used to get information on the current page ... include the port number, whereas hostname will only return...
Read more >
TestNG Listeners In Selenium Webdriver For Automated Testing
In the above tests, we are re-iterating through the object suites that contain all the information about it. Since it contains much information, ......
Read more >
Chapter 1, Writing Your First JavaScript Program - O'Reilly
(And if you do have programming experience, this book will teach you JavaScript's idiosyncrasies and the unique concepts involved in programming for web ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found