Running Karate tests in a Docker container
Often, build servers don’t have all the technology necessary to run every software and every testing framework without any further configuration. Unfortunately, you don’t always have complete administrator access to simply add missing components or even make complete configuration changes.
To recap, our Karate tests have some requirements they need to run properly: Java and Maven. There might be even more needed dependencies, depending on your test scope, which would require even more effort to provide.
This is where Docker comes in.
Understanding Docker
Docker is a solution that can run on many platforms. It uses a concept called OS-level virtualization. That means that we can have multiple isolated containers on an OS, including all kinds of custom tools and settings. For programs that run inside such a container, it feels like a self-contained system. The great thing about it is that we can have ready-made containers...