最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Getting error while running Karate Framework code on IntelliJ community 2024.2.4 - Stack Overflow

programmeradmin2浏览0评论

I am getting below error while running Karate Framework code from Karate Runner file on IntelliJ idea community version 2024.2.4, the same code is running on Eclipse IDE. Earlier this code was running on IntelliJ as well but after an update this seems to have stopped working (I might be wrong about the update, but this behavior happened few days after that).

Error: line 23:20 mismatched input '' expecting {FEATURE_TAGS, FEATURE} 16:05:50.643 [main] ERROR com.intuit.karate.core.FeatureParser - syntax error: mismatched input '' expecting {FEATURE_TAGS, FEATURE} 16:05:50.648 [main] ERROR com.intuit.karate.core.FeatureParser - not a valid feature file: classpath:tests/Test.feature - mismatched input '' expecting {FEATURE_TAGS, FEATURE}

java.lang.RuntimeException: mismatched input '' expecting {FEATURE_TAGS, FEATURE}

at com.intuit.karate.core.FeatureParser.<init>(FeatureParser.java:150)
at com.intuit.karate.core.FeatureParser.<init>(FeatureParser.java:126)
at com.intuit.karate.core.FeatureParser.parse(FeatureParser.java:69)
at com.intuit.karate.junit4.Karate.<init>(Karate.java:75)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at .junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
at .junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
at .junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at .junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at .junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at .junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:50)
at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:232)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:55)
发布评论

评论列表(0)

  1. 暂无评论