Comments (11)
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.
Are you still seeing this with 0.3.3?
from karma-junit-reporter.
This is 0.3.3, yes.
Cheers
from karma-junit-reporter.
Could you share the rest of your karma.conf? I'm having trouble reproducing.. thanks
from karma-junit-reporter.
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.
I had the same issue, it appears to be fixed by ac7beca.
from karma-junit-reporter.
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.
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.
0.13.9
Let me know if you need any more info :)
Cheers
from karma-junit-reporter.
Ah, my mistake @adriaanthomas, thanks! - @fraserhart I guess you have your answer there :)
from karma-junit-reporter.
Beautiful. Thanks guys :)
from karma-junit-reporter.
Related Issues (20)
- Question about CLA and License HOT 4
- License of XSD file HOT 1
- Project Lifetime HOT 2
- Readme should say to add module as a plugin in karma.conf.js HOT 1
- Where does 2.0.0 come from? HOT 1
- Testcase name must be escaped HOT 2
- Text string with emoji crashes the karma HOT 3
- npm audit vulnerability with xmlbuilder package HOT 1
- Please consider releasing a new version. HOT 1
- Suite (package) name is not prepended to the classname attribute in the testcase element
- How to give custom test suite name using karma junit reporter? HOT 2
- Replacement of Path-is-absolute dependency HOT 1
- Windows machines not reporting browser and OS HOT 2
- Warnings HOT 2
- false positive failure with junit on skipped tests
- Any word on 2.0.2
- sometimes junit-reported just doesn't generate reports HOT 11
- link at bottom of readme should point to .io
- Reestablish CI/CD with GitHub Actions
- Is the project still maintained? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from karma-junit-reporter.