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

How to give custom test suite name using karma junit reporter? #180

Open
Aadi1995 opened this issue Mar 4, 2020 · 2 comments
Open

How to give custom test suite name using karma junit reporter? #180

Aadi1995 opened this issue Mar 4, 2020 · 2 comments

Comments

@Aadi1995
Copy link

Aadi1995 commented Mar 4, 2020

Is there a way to give a custom test suite name in the test results xml which are getting generated using the karma junit reporter?

By default it takes the browser name. Due to this reason, my test reports of multiple ui modules are getting generated with same test suite name and I am running into some issues in applications which uses this test results xml files.

The below code snippet from the package's index.js file is causing the issue. Is there a way to override this?

https://github.com/karma-runner/karma-junit-reporter/blob/master/index.js

suite = suites[browser.id] = builder.create('testsuite')

  | suite.att('name', browser.name)
  | .att('package', pkgName)
  | .att('timestamp', timestamp)
  | .att('id', 0)
  | .att('hostname', os.hostname())

@SamH95
Copy link

SamH95 commented May 8, 2020

I think this PR would solve this issue but it seems like nobody works on this at the moment.
#173

@Chreekar
Copy link

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants