karma-sonarqube-unit-reporter icon indicating copy to clipboard operation
karma-sonarqube-unit-reporter copied to clipboard

Useless parameter for filenameFormatter

Open dmkukh opened this issue 6 years ago • 0 comments

Seems like there's a problem with a parameter for filenameFormatter function which you can set using the configuration. So in index.js line 128 you have this call - nextPath = filenameFormatter(nextPath, result); where nextPath is a testname which you further use as an index to an array of test files declared in line 201 var filesForDescriptions. Could you please change the 128 line to nextPath = filenameFormatter(filesForDescriptions[nextPath], result) so formatter can access and affect the path to make the function useful, because accessing the test name in FILENAME formatter doesn't let me format the path displayed in the report.

dmkukh avatar Jul 30 '18 10:07 dmkukh