Coder Social home page Coder Social logo

Comments (10)

swayf avatar swayf commented on July 19, 2024

+1. I have the same issue

from karma-junit-reporter.

swayf avatar swayf commented on July 19, 2024

hm.. but seems the issue is not here..
@ianwremmel do you use karma 0.12 with karma-ievms?

from karma-junit-reporter.

ianwremmel avatar ianwremmel commented on July 19, 2024

Nope, not familiar with karma-ievms.

Here's the relevant portion of package.json:

    "karma": "~0.12.28",
    "karma-browserify": "~3.0.1",
    "karma-chrome-launcher": "~0.1.7",
    "karma-coverage": "~0.2.7",
    "karma-firefox-launcher": "~0.1.3",
    "karma-junit-reporter": "~0.2.2",
    "karma-mocha": "~0.1.10",
    "karma-mocha-reporter": "~0.3.1",
    "karma-safari-launcher": "~0.1.1",
    "karma-sauce-launcher": "~0.2.10",

As I said, I've looked at karma-junit-reporter to try to figure out what's going on and nothing seems obvious. Since it happens intermittently, I have to assume it's a race condition somewhere where one of the events is firing before/after the the xml file has been opened/closed.

I know I've seen the problem when using karma-sauce-launcher and I'm pretty sure I've seen it using the karma-chrome-launcher. In the all of the cases I've seen it, I've been using the mocha reporter and I think I've been using the coverage reporter for all of them.

from karma-junit-reporter.

summanerd avatar summanerd commented on July 19, 2024

+1. I have the same issue

I have noticed that it only occurs when I run it as an npm task. If I execute ./node_modules/.bin/karma start karma.js from the command line the error does not occur. For now I have my pre-commit hook run it as a make command.

from karma-junit-reporter.

TheSavior avatar TheSavior commented on July 19, 2024

This just flaked for us as well on jenkins. Doesn't happen consistently.

Missing error handler on `socket`.
TypeError: Cannot read property 'ele' of undefined
    at specSuccess.specSkipped.specFailure (/node_modules/karma-junit-reporter/index.js:93:34)
    at onSpecComplete (/node_modules/karma/lib/reporters/base.js:78:12)
    at null.<anonymous> (/node_modules/karma/lib/events.js:13:22)
    at emit (events.js:129:20)
    at onResult (/node_modules/karma/lib/browser.js:216:13)
    "karma": "0.13.9",
    "karma-browserify": "4.3.0",
    "karma-chai": "0.1.0",
    "karma-chrome-launcher": "0.2.0",
    "karma-firefox-launcher": "0.1.6",
    "karma-junit-reporter": "0.3.4",
    "karma-mocha": "0.2.0",
    "karma-qunit": "0.1.5",
    "karma-safari-launcher": "0.1.1",
    "karma-sinon": "1.0.4",
    "karma-source-map-support": "1.0.0",

from karma-junit-reporter.

summanerd avatar summanerd commented on July 19, 2024

@TheSavior if it helps I noticed I only have issues when I node version 0.10.32. When I use version 0.11.14 I have no issues.

from karma-junit-reporter.

TheSavior avatar TheSavior commented on July 19, 2024

Hmm. We are on 0.12.0

from karma-junit-reporter.

janblok avatar janblok commented on July 19, 2024

We are seeing this error if we use non ascii text in karma test:

it("interpoleer drglpt zonder coordinaten en met één verbonden drglpt", function() {
    //fails
}

if we change to:

it("interpoleer drglpt zonder coordinaten en met 1 verbonden drglpt", function() {
    //succeeds
}

it all works, is there an encoding problem somewhere?

from karma-junit-reporter.

TomMarulakGorkana avatar TomMarulakGorkana commented on July 19, 2024

I have this issue and it turn out I have many phantomjs instance running in background. killall phantomjs fixed it

from karma-junit-reporter.

stramel avatar stramel commented on July 19, 2024

karma-runner/karma#1292

from karma-junit-reporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.