-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Getting error "Could not find option with name js.ecmascript-version" when running test #2243
Comments
@droger88 I think this thread will give you the answer, in short - try 1.4.0.RC3 and let us know: #2148 (comment) |
@ptrthomas Thanks for the quick reply. I have tried 1.4.0.RC3, and the error message did go away, but now I am getting |
@droger88 then read this and try using |
@ptrthomas still no luck.
Updated the pom with dependencies:
run command
|
@droger88 sorry, it must be something about your Java install then. I generated a new project and used 1.4.0.RC3 and it works fine for me. I suggest you help investigate and contribute a fix. as you would have seen in the other thread, there are folks using karate with quarkus without issues. <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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>myproject</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<maven.compiler.version>3.8.1</maven.compiler.version>
<maven.surefire.version>2.22.2</maven.surefire.version>
<karate.version>1.4.0.RC3</karate.version>
</properties>
<dependencies>
<dependency>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-junit5</artifactId>
<version>${karate.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>src/test/java</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.version}</version>
<configuration>
<encoding>UTF-8</encoding>
<source>${java.version}</source>
<target>${java.version}</target>
<compilerArgument>-Werror</compilerArgument>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.version}</version>
<configuration>
<argLine>-Dfile.encoding=UTF-8</argLine>
</configuration>
</plugin>
</plugins>
</build>
</project> |
@ptrthomas Thanks a lot for the help. It is indeed the version of GraalVM version which cause the problem. I guess we will have to downgrade to java 11 GraalVM 22.2 build. Or is it something you can fix karate in the java 17 GraalVM 22.3 build? I am not a GraalVM experts, need to figure out what exactly causes the issue |
@droger88 you can comment on the other thread and see if someone has some ideas. right now we don't have the bandwidth to investigate this. I have a feeling you are missing something because as far as I know, Karate should work for 1.4.0.RC3 (which uses Graal 22.3) on Java 17. I also thought that you are blocked by the ANTLR problem. if you can submit a simple example following these instructions, it can increase the chances that someone investigates: https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue |
update - as per #2245 looks like Karate can work only with the "normal" JVM |
@droger88 I solved this issue by installing the nodejs component into graalvm (v. 22.3.1) with this command: gu install nodejs (maybe just installing js is enough: gu install js). |
@filsero thanks for sharing ! |
@filsero thanks a lot for sharing |
cc @edwardsph @droger88 @filsero @maxandersen - folks I've just created a Karate-Quarkus example, do check it out when you get a chance: https://github.com/karatelabs/karate-examples/tree/main/quarkus happy to take feedback and suggestions on any other common-patterns that can be added. if you know of public examples I can link to as a reference, do let me know. thanks ! |
Currently we are planning to use karate test for our Apis developed using Quarkus/native.
Created a simple test case
Integration test:
The idea is to run with @QuarkusIntegrationTest to test the native executable.
But we are getting following error
Version:
Java:
Karate version
The text was updated successfully, but these errors were encountered: