Coder Social home page Coder Social logo

Comments (11)

punisherx avatar punisherx commented on August 19, 2024 4

I still had this issue with a newer version, but just for your information you can set useBrowserName to false:

junitReporter: {
   outputDir: 'reports/karma',
   outputFile: results.xml,
   suite: '',
   useBrowserName: false
},

from karma-junit-reporter.

janeklb avatar janeklb commented on August 19, 2024

Are you still seeing this with 0.3.3?

from karma-junit-reporter.

fraserhart avatar fraserhart commented on August 19, 2024

This is 0.3.3, yes.

Cheers

from karma-junit-reporter.

janeklb avatar janeklb commented on August 19, 2024

Could you share the rest of your karma.conf? I'm having trouble reproducing.. thanks

from karma-junit-reporter.

fraserhart avatar fraserhart commented on August 19, 2024

Of course.

Cheers

// Karma configuration
// Generated on Thu Aug 06 2015 11:58:03 GMT+0100 (BST)
var webdriverConfig = {
    hostname: '192.168.10.126',
    port: 4723
}
module.exports = function(config) {


  config.set({

    // base path that will be used to resolve all patterns (eg. files, exclude)
    basePath: '',

    browserNoActivityTimeout: 1000000,

    // frameworks to use
    // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
    frameworks: ['jasmine', 'requirejs'],


    // list of files / patterns to load in the browser
    files: [
      'test/test-main.js',
      {pattern: 'environment-config.js', included: false},
      {pattern: 'environment-config.json', included: false},
      {pattern: 'js/**/*.*', included: false},
      {pattern: 'test/jasmine/spec/**/*.spec.js', included: false},
    ],



    junitReporter: {
        outputDir: 'reports/karma',
        outputFile: undefined,
        suite: ''
    },


    // list of files to exclude
    exclude: [
    ],


    // preprocess matching files before serving them to the browser
    // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
    preprocessors: {
    },


    // test results reporter to use
    // possible values: 'dots', 'progress'
    // available reporters: https://npmjs.org/browse/keyword/karma-reporter
    reporters: ['progress', 'junit'],


    // web server port
    port: 9876,

    hostname: '192.168.10.126', //points to accessible Karma server

    // enable / disable colors in the output (reporters and logs)
    colors: true,


    // level of logging
    // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
    logLevel: config.LOG_INFO,


    // enable / disable watching file and executing tests whenever any file changes
    autoWatch: true,


    // start these browsers
    // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
    browsers: ['Android', 'Chrome', 'Firefox', 'PhantomJS', 'Safari'],
    // browsers: ['iOS'],

    customLaunchers: {
        'iOS-Safari' : {
            base: 'WebDriver',
            platformName: "iOS",
            deviceName: 'iPhone 5',
            config: webdriverConfig,
            browserName: 'Safari',
        },
        'Android' : {
            base: 'WebDriver',
            platformName: "Android",
            deviceName: 'Android',
            config: webdriverConfig,
            browserName: 'Browser',
        }
    },

    // Continuous Integration mode
    // if true, Karma captures browsers, runs the tests and exits
    singleRun: true

  })
}

from karma-junit-reporter.

adriaanthomas avatar adriaanthomas commented on August 19, 2024

I had the same issue, it appears to be fixed by ac7beca.

from karma-junit-reporter.

janeklb avatar janeklb commented on August 19, 2024

I thought the same thing @adriaanthomas, but that fix should be part of 0.3.3. @fraserhart what version of Karma are you running?

from karma-junit-reporter.

adriaanthomas avatar adriaanthomas commented on August 19, 2024

0.3.3 does not contain this fix.

I tested with this in my package.json:

    "karma-junit-reporter": "karma-runner/karma-junit-reporter#ac7beca0c0",

from karma-junit-reporter.

fraserhart avatar fraserhart commented on August 19, 2024

0.13.9

Let me know if you need any more info :)

Cheers

from karma-junit-reporter.

janeklb avatar janeklb commented on August 19, 2024

Ah, my mistake @adriaanthomas, thanks! - @fraserhart I guess you have your answer there :)

from karma-junit-reporter.

fraserhart avatar fraserhart commented on August 19, 2024

Beautiful. Thanks guys :)

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.