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
Issue with the read function in 0.9.9RC4 Standalone Jar #1480
Comments
@ricardgo403 I've attempted a fix, but see some other failures now. cc @ivangsa in case he has time to investigate |
@ricardgo403 haven't heard back, and I'm assuming this is fixed, closing. please open a new issue with specifics if needed, and try and simplify the project more (also don't check in the big zip file please) |
@ptrthomas I had reported a similar issue in the early part of thread #1373. When running mock testing with the latest karate-0.9.9.RC4.jar, I got the same error.
If this bug is fixed, has the fix solution been integrated a release candidate yet? |
@hujunhaorobert no RC so if you are able to follow these instructions and build locally, that will be very helpful: https://github.com/intuit/karate/wiki/Developer-Guide |
@ptrthomas , I had build a new karate-2.0.0.jar successfully by following the developer guide, which is great. 10:06:01.953 [main] INFO com.intuit.karate - Karate version: 2.0.0 main-mock-server.feature file utils/utils.feature is a common utility functions defined in a feature file. |
@hujunhaorobert help us replicate this please |
@ptrthomas do you want me to replicate the issue I reported above or the issue by @ricardgo403 at this thread beginning? I just guess the 2 issues might be duplicated or due to the similar root cause, so I put my finding here for reference. |
@hujunhaorobert I want you to replicate the issue you found please, follow this process: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue |
Hi @ptrthomas , here I attached a demo repo to replicate the failure : Would you please check it? https://github.com/hujunhaorobert/demoMockFailure |
the reason was because for the temp-use-runtime the suite hooks was null but now changed to an empty collection to avoid the npe also discovered an optimization in file-resource code and also improved cli to load a logback.xml from working folder if exists ref #1471
@hujunhaorobert @JoshSchreuder I think I fixed the problem you reported, can you confirm off the |
@ptrthomas I re-generate karate-2.0.0.jar based on the latest develop branch and re-run the mock testing, seems the reported error is gone. Thanks for your effort on the fix solution! |
Issue in Karate 0.9.9.RC4 (2021-02-09) Standalone Jar
Description
I followed the developer guide provided by intuit/karate repo to build the jar, and till this point, everything looked great, because all the unit tests passed and the built was successful. Build JAR
Then I tried to run my already built and functional test suites with this JAR, but unfortunately, it didn't go as expected.
The issue is when running using the following command:
The run is stopped by an error, an exception thrown when reading from within the karate-config.js file some JSON and txt files.
And as you can see the file configs.json is on the root path, in the latest stable version there was no problem with it.
So to me, the expected result was running the already known command and expect that all the features passed successfully.
It seems to me that the problem might be in the read function because when I asked about it a solution was provided, that was adding the file: prefix to the file path string; it worked. But then, when the smoke.feature called the features files it threw the same error/exception.
You could find the Minimal, Complete and Verifiable version of the project in this repo
The text was updated successfully, but these errors were encountered: