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

Add flag to limit name/classname string generation #146

Open
Krzysztof-Bednarczyk opened this issue Mar 25, 2021 · 0 comments
Open

Add flag to limit name/classname string generation #146

Krzysztof-Bednarczyk opened this issue Mar 25, 2021 · 0 comments

Comments

@Krzysztof-Bednarczyk
Copy link

Krzysztof-Bednarczyk commented Mar 25, 2021

My current setup in .mocharrc.yml looks like so:

reporter: 'mocha-junit-reporter'
reporter-option:
  - 'mochaFile=./test-reports/api-test-results.xml'
  - 'testCaseSwitchClassnameAndName=true'
spec:
  - './test/api/*.js'

Currently, the name property is generated from the it block string, which is good but the classname property is a concatination of describe + it block strings.
Therefore my Azure Pipeline test reports look strange:

Describe block string
- it block string
 Describe block string
- it block string

If You could add a configuration option property so I could limit the name/classname property to only the describe block my reports would look more concise in Azure.

Describe block string
- it block string
- it block string

@michaelleeallen - can I ask You to add such a feature?

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

1 participant