Back to Karate

Karate v2

README_V2.md

2.0.72.4 KB
Original Source

Karate v2

[!NOTE] 📣 Read the official announcement on LinkedIn

Karate v2 is a complete rewrite of Karate, the popular open-source test automation framework. It combines API testing, mocking, and performance testing into a single, unified tool.

Karate v1 supports web-browser automation, and this will be eventually added to v2 as well.

Modules

ModuleDescription
karate-jsLightweight JavaScript engine for the JVM with thread-safe concurrent execution
karate-coreCore testing framework with HTTP client/server, templating, and match assertions

Key Features

  • API Test Automation - Write expressive tests in Gherkin syntax with powerful JSON and XML assertions
  • Mock Servers - Built-in HTTP server for API mocking with dynamic responses
  • Performance Testing - Scale from functional tests to load tests seamlessly
  • HTML Templating - Thymeleaf-based templating with HTMX and AlpineJS support
  • Thread-Safe JavaScript - Custom JS engine designed for parallel test execution
  • Java 21+ - Built on modern Java with virtual threads and latest language features

Getting Started

Requirements

  • Java 21 or higher

Maven Dependency

Coming soon.

Documentation

For Karate 1.x Users

Karate v2 maintains backwards compatibility with 1.x features. If you're migrating from 1.x, most of your existing tests should work with minimal changes.

See MIGRATION_GUIDE.md for details on migrating from v1.

License

MIT License

About

Karate v2 is developed by Karate Labs Inc. with contributions from the community.

We invite enterprise users of Karate to review, influence the direction, and contribute to this project.