The results from calling console.time() do not get sent to the karma server

Open Beginner friendly
#3,549 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
testing

Research direction

Start in context/karma.js around lines 107-137, where Karma handles console output. Trace how console timing results are forwarded from the test page to the Karma server and identify the missing path. Done means calling console.time() in a test produces the corresponding results on the server.

Written by the indexing model from the issue text.

Description

Hi!

I'm trying to call console.time in my test but I am not seeing the results on my server. As @devversion explains here, Karma does not patch console.time, so the results are not pushed back from the page to the Karma server.

https://github.com/karma-runner/karma/blob/0647109358362e9c10603b1e1f6894bc8b4d0bca/context/karma.js#L107-L137.

Dominant language
JavaScript
Stars
12k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from karma-runner/karma

All issues in karma-runner/karma

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.