karma-sonarqube-unit-reporter
karma-sonarqube-unit-reporter copied to clipboard
Useless parameter for filenameFormatter
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.