Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error if no outputFile defined (regression in v0.4.0) #87

Closed
carljm opened this issue Mar 10, 2016 · 0 comments
Closed

Error if no outputFile defined (regression in v0.4.0) #87

carljm opened this issue Mar 10, 2016 · 0 comments

Comments

@carljm
Copy link

carljm commented Mar 10, 2016

Recent commit d5dc808 causes karma-junit-reporter to no longer function if an outputFile is not defined in the config, even though outputFile is documented as optional and was previously optional. The error is TypeError: Cannot read property 'charAt' of undefined, and it's caused by calling pathIsAbsolute(outputFile) in writeXmlForBrowser without first checking to make sure outputFile was set.

carljm referenced this issue Mar 10, 2016
Modifies the Junit Reporter so that it doesn't try to combine the output directory path and the output file, if the output file is already an absolute path

Closes #83
matthauck added a commit to matthauck/karma-junit-reporter that referenced this issue Mar 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants