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
Dynamic test cases raises 'Test file path not found' log message #18
Comments
Yeap! This is a limitation of the approach used to detect test file paths. Karma doesn't report them as part of test metadata, but this information is required by sonarqube. Actually, In your example you generate tests dynamically. Consequently,
However, there aren't any test files containing this comments. I think a solution would require changing the approach to something like suggested here. |
Thank you for your feedback. I understand the problem, but other libraries like 'karma-sonarqube-unit-reporter' have no problem with that. I like your library and would like to use it furthermore. is it planned to fix/change the behavior? |
Sure. I'll try to look at this during the next weekend! |
I tried very hard to solve this but without success. As I mentioned before, I decided to change the approach based on what is suggested here. However, it didn't work as I expected. Check my comments there. @mesche Are you sure 'karma-sonarqube-unit-reporter' has no problem with this? I didn't test it, but I was unable to see reading its code how this case is handled. It seems to be using regular expressions too. |
@fadc80 Yes, I am sure |
@all-contributors please add @mesche as a contributor for bug. |
I've put up a pull request to add @mesche! 🎉 |
Currently, path-finder raises an error log message, when creating dynamic test cases with forEach.
The text was updated successfully, but these errors were encountered: