4

Running Karate Tests

Now that we know the basics of writing new Karate tests, we will explore different ways to run them through both VS Code and Maven. We will look at how to choose a specific environment to run tests against. We will also get to know how to run only a subset of tests, as well as discovering ways to efficiently debug them to pinpoint and fix issues more quickly.

In this chapter, we will cover these main topics:

  • Running and debugging Karate tests through the IDE
  • Running tests with Maven
  • Running tests against different environments
  • Running specific tests
  • Filtering tests by tags

Technical requirements

The code examples for this chapter can be found at https://github.com/PacktPublishing/Writing-API-Tests-with-Karate/tree/main/chapter04 ...

Get Writing API Tests with Karate now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.