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

[Question/Feature] #78

Open
HichamBI opened this issue Jul 28, 2020 · 1 comment
Open

[Question/Feature] #78

HichamBI opened this issue Jul 28, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@HichamBI
Copy link

Hello,

First of all, Thanks for the Great job on maintaining this project. It's awesome !

I'm using mochapack in my project and my issue is when I generate a test results report for Sonar - using mocha-sonarqube-reporter - this report is ignored by Sonar because it only reference the generated webpack bundle name and not the effectives tests files.

image

It's possible to add a describe block (with file name) to each test file, but I think is bad.

Do you have any idea to generate a report with the correct test files references ? Do you think that it's possible to implement a new feature fixing this ?

Best regards

@HichamBI HichamBI added the enhancement New feature or request label Jul 28, 2020
@techmunk
Copy link
Contributor

Had the same issue when using the mochawesome reporter as well. I wrote a new UI to make this work correctly. It should work with other reporters as well. It uses the BDD interface and fixes filename/line number information. Use at your own risk.

https://gist.github.com/techmunk/7589442964721c10de96df2d75d5ea3c

I'm not sure if there's anything more generic that mochapack could do to add this feature naively. It is not something I've spent long investigating.

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

No branches or pull requests

2 participants