-
Notifications
You must be signed in to change notification settings - Fork 40
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
Null Pointer Exception while integrating swagger coverage with karate framework #145
Comments
Hey! |
Hi! For sure,
|
Hey, sorry for the late response, I'm super busy atm. I had a quick look at it, and I think I know what could be going on. Can you maybe share the log file? |
No worries, I've attached the file: |
Hi, I've recently bumped into this same issue and would really like to try this module to check swagger coverage with Karate. Do you have any updates on this? Thank you! |
Hey guys, sorry I haven't gotten back to you on this issue. Can you also provide me with your log4j.log file and ideally a small reproduction project? I will try to take a look at this asap! |
Hi, sorry I hadn't come back to this issue. I managed to prepare a small reproduction project (which I've attached), but wasn't able at first to get the error above. I was finally able to reproduce the null pointer exception, but only if I change protocol to https in karate-config.js when the proxy is used (which is wrong):
My main problem, though, is I'm not able to run tests using the proxy with https endpoints. I tried the workaround described here: but with no success. Is it possible to work with https while using the proxy to measure swagger coverage? Thanks again! |
I 've got the same error and same stack than the one from @dtk72 when i upgrade version of karate 1.4.1 and other libraries:
https://github.com/tdeverdiere/swagger-coverage/tree/update-karate Error : "java.lang.NullPointerException: Cannot invoke "java.nio.file.attribute.FileTime.toInstant()" because "this.minResultTime" is null" |
I got same issue, karate version is 1.4.0, swagger-coverage version is 1.5.0
|
Is the issue fixed on your side? |
Hello
To write SwaggerCoverageRuntimeHook i mostly use the code from swagger-coverage-karate: SwaggerCoverageRunner#generateReport I could give you the all code in my repo if you want |
This looks like related to karatelabs/karate#2048 |
can you share repo @tdeverdiere |
@tdeverdiere can you share the repo or provide any pointers on how to integrate this tool into Karate Runner? Thanks |
I'm submitting a ...
Error when running
mvn clean test
java.lang.NullPointerException: Cannot invoke "java.nio.file.attribute.FileTime.toInstant()" because "this.minResultTime" is null
If the current behavior is a bug, please provide steps to reproduce, broken swagger specification and swagger-coverage-output:
Followed this code example provided in the README to generate a swagger coverage report after running karate tests for my own API:
The error seems to arise when the code reaches .parallel(1)
Other information
The text was updated successfully, but these errors were encountered: