Closed carlos-vargas-pplus closed 1 year ago
Hi Carlos - Can you help me a little more with your repro steps.
java -cp karate.jar:target/test-classes com.intuit.karate.Main
** Are you adding this to settings under Karate Runner > Karate Jar: Command Line Args?Since you can reproduce the issue with karate-maven-gradle, if you want to just create a PR with the repro steps I can pull it down and work on this. That PR should also pickup the changes you're making in Karate Runner settings too if you are changing that.
have cloned your repo
added the commandline:
just clicked on run:
and got this error (seems karate-config is not being recognized)
update the issue I was tracking since I put the wrong link, this is the correct one https://github.com/kirksl/karate-runner/issues/138 seems the same issue
HI @carlos-vargas-pplus did issue #138 resolve your issue or are you still having problems?
hello kirk, I followed the advise there but still have the same issue. Im pretty sure is something karate-config is not being recognized when running the tests
@carlos-vargas-pplus Sorry for the delay. I believe you just need to ensure karate-config.js can be found by either placing it at the root of the project or using -Dkarate.config.dir=[path] variable. Here's a quick example with it working. This is karate.jar 1.3.1.
Hi kirk, thanks for your time
-Dkarate.config.dir=[path]
? seems I never configured thatPutting karate-config in another location should be fine. I have not used this configuration much, but you should be able to set it as shown below https://github.com/karatelabs/karate/issues/1330
ok thanks, I think we can close this since is not exactly related to the extension
@carlos-vargas-pplus Let us know if you need anything else. For Karate (not extension) questions feel free to reach out to Karate directly. They are very responsive on Github and Stackoverflow.
Hello, I have been following this issue https://github.com/kirksl/karate-runner/issues/138 (added
java -cp karate.jar:target/test-classes com.intuit.karate.Main
) but still no luck Seems karate-config is not even recognized since the variables i am calling from there seems unexistantI am using macOS and java 11
and this is my pom
`<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
`
PD1: I am able to run everything with the intellij plugin but dont know why I cant on vscode PD2: Also I have the same issue on this project you posted on the issue https://github.com/kirksl/karate-maven-gradle