mochapack
mochapack copied to clipboard
[Question/Feature]
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.

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
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.