-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Error: there is no registered task type 'karate'. Did you miss installing an extension that provides a corresponding task provider? #193
Comments
@luismaria-hernandez Can you confirm if you are having this issue with earlier versions of Karate. I would try versions before 1.4.1 and maybe try our sample repository here which uses an older version of Karate too https://github.com/kirksl/karate-maven-gradle |
Hi Kirk!, sorry for the delay. I've tried downloading the 1.2.0 jar version for the runner but the problem persists.
|
Can you try our sample project https://github.com/kirksl/karate-maven-gradle. We use this project for testing the Karate Runner plugin. If this does not work then you will need to open a ticket with https://github.com/karatelabs/karate |
Hi @kirksl I've executed the test on the sample project and it seems that there's a problem with the plugin. I executed the command mvn clean test and it exploded. Shall I proceed to create the ticket?
|
@luismaria-hernandez Can you confirm this is what your test results look like. This project creates expected test failures. |
@kirksl The error in my computer doesn't look like the one you're showing, I'll go into this in detail. If I run all the test on the feature file by writing the command mvn test, it works as expected, the problem comes when I want to run the test individually. To do so, I have to click on this option on the settings menu. Afterwords, click on Karate: Run A new terminal is opened and the test encounters an error As you can see, there are not red dots on the karate icon on the left |
@luismaria-hernandez Thank you for all of the details. I am unable to reproduce your issue. I haven't seen any other users having this issue as well. Running After you have confirmed your tests are running successfully on the command line then if you are still having trouble like you are showing with missing a registered task type, you might have multiple extensions installed that are trying to register You shouldn't need to set Override Karate Runner to run individual tests by the way. |
@kirksl Hi! I'm running VS code locally. The extensions that I've installed are: Extension Pack for Java (Java runner disabled), The karate plug in and Cucumber (Gherkin) full support. In my computer I've also installed Maven, Git, Node JS and Yarn. This is supposed to be required to run Karate tests, and according to the documentation (https://github.com/karatelabs/karate), the following dependency is the only one that I need to run tests with the framework. |
@luismaria-hernandez That should be correct. What If you want to try and duplicate my setup to see if that solves your problem below are the steps I would try.
|
Hi! I'm having this error after executing the individual tests and I have no idea of how to solve this. This is what the output brings up in the console on VS Code:
Error: there is no registered task type 'karate'. Did you miss installing an extension that provides a corresponding task provider?
This is the line that indicates where the error is at:
Executing task: mvn clean test-compile -f "<Project Directory>\myproject\pom.xml" exec:java -Dexec.mainClass="com.intuit.karate.cli.Main" -Dexec.args="<Project Directory>\HomePage.feature:7" -Dexec.classpathScope="test"
And this one is the error, apparently:
I've looked everywhere and I found no answer yet. Hope someone could help me out here. Thank you!
The text was updated successfully, but these errors were encountered: