Repo with assets that will be used in a talk about Karate testing framework that will be held in Codemotion 2019 Madrid Conference
You can find the slides here.
- JVM Environment To run the HTTP API provided โ
- Docker To run the tests ๐
Once inside the cloned repo, you can use gradle and the docker engine to:
## Run the HTTP API
cd cats-as-a-service && ./gradlew clean shadowJar run ; cd -
This will block your terminal, so open a new one to run the tests against the HTTP service with:
## Run the test suite
docker build . -t karate-dsl && docker run -v "$PWD/target:/target" --network=host karate-dsl:latest
Although this project contains an HTTP API coded in Java, you can test with Karate any HTTP API, no matter the language it is written.
The execution should generate a Cucumber HTML report that could be opened with your favourite browser at target/cucumber-html-reports/overview-features.html
I did a more extensive talk about Karate in the following meetup.
Send me anything but viruses to [email protected] ๐ฉโ๐ป