1

I hope someone can help me, it seems a silly issue, but I have not been able to make Karate running on my project.
I want to use Karate to perform the Integration Test, calling REST Services, whose implementation is provided by another module in the same project.
I am using Karate with JUnit5 configuration.
I have the following Maven project structure:

enter image description here
You can also see above my pom.xml in the EAR module.

I am using weblogic-maven-plugin, because I need to deploy the EAR artifact before starting the Integration Test.

The main pom.xml contains the plugin configuration as you can see below:

enter image description here

I followed the instructions on https://github.com/intuit/karate#quickstart and also created the skeleton project using the Karate Maven archetype to compare the configuration.

When I run mvn verify I get this output:

enter image description here

My runner test class is:

enter image description here


The test class is being executed, but for some reason the feature file is not being found.

What might be the problem ?

Thanks in advance for any suggestion.

Brienze

brienze
  • 81
  • 2
  • 6
  • 1
    You probably missed the `test-resources` tweak: https://github.com/intuit/karate#folder-structure Also see: https://stackoverflow.com/a/48522439/143475 – Peter Thomas Jul 20 '20 at 03:53
  • 1
    Hello @PeterThomas, I could have it working through this https://github.com/khmarbaise/maui/issues/2. It is mentioned in the second link you suggested. Nice, this way I don´t need to create a separated module, then it would be necessary to manage the deployment through script. Thanks a lot. Now I will start playing with Karate ! :-) – brienze Jul 20 '20 at 17:53

0 Answers0