Starting Karate Mock server with karate standalone jar

851 views Asked by At

I am trying to use Karate Mock Server to replace my Wiremock server to mock API calls. Since I need to start Karate as a server, I am wondering what are the minimum maven dependencies I need to start the karate server? Do I just need Karate Netty and Karate Core or do I need the full karate (50MB) jar? Can someone please share the maven dependency for this?

1

There are 1 answers

3
Peter Thomas On BEST ANSWER

Minimum maven dependencies: just one dependency, karate-core.

Please look at the latest version. There is no karate-netty it was rolled into karate-core a while ago.

The "fatjar" is convenient for teams to use without worrying about Maven or Gradle. Front-end teams or JS devs like it. Please refer to this page: https://github.com/karatelabs/karate/wiki/ZIP-Release

The rest of your questions are answered in the docs: https://github.com/karatelabs/karate/tree/master/karate-netty - again, make sure you are on the latest version.