-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Set HTML report path based on build tool #319
Comments
what's the best way to determine which tool is in operation ? |
Is this new in 0.7.0? One solution would be to pass the path in rather than hard coding? |
@KramKroc kind of 0.6.2 onwards - just that I never realized gradle does its own thing. I'm hoping some gradle expert would know of e.g. some system property that we can look for etc. |
if anyone is listening to this thread kindly try 0.7.0.1 (just released) and do confirm. this is damn near impossible to test in my environment. there's no way to get a local maven artifact used by a local gradle project it seems |
Hey @ptrthomas ! I have a Gradle integration: From my point of view, the fix works. Thanks a lot! |
ah @hosszubalazs finally appears ! thanks for confirming :) |
released 0.8.0 |
In KarateHtmlReporter.java the path of the created SureFire report is set in the following way:
File file = new File("target/surefire-reports/TEST-" + packageName + ".html");
This is incorrect in a Gradle environment. Build artifacts, like reports, are expected under the "build" folder, not "target". Running the tests creates a new folder, usually outside of source control rules or ignore settings.
Request:
HTML report should be created under a path specific to the build tool conventions, improving support for Gradle.
The text was updated successfully, but these errors were encountered: