Skip to content

v2.0.0

Choose a tag to compare

@ptrthomas ptrthomas released this 26 Mar 05:57
· 266 commits to main since this release

Karate 2.0.0

Important: 2.0.5 is available.

The first major release of Karate v2 — a ground-up rewrite of the test automation framework, built on Java 21+ virtual threads with a custom JavaScript engine.

Highlights

  • Custom JS Engine — embedded JavaScript engine (karate-js) replaces GraalJS. Minimal external dependencies, faster startup, native Java interop
  • Virtual Threads — parallel test execution on Java 21+ virtual threads. No thread pool tuning needed
  • W3C WebDriver — full cross-browser support for Chrome, Firefox, Safari, and Edge alongside the existing CDP driver
  • Browser Pooling — automatic browser instance reuse across parallel scenarios via PooledDriverProvider
  • Karate CLI — single binary launcher, no Maven or Gradle required. Install from VS Code with one click:

  • Rewritten CDP Driver — auto-wait, Shadow DOM support, smarter element location
  • Gatling Integration — Java-only DSL for load testing (karateProtocol(), karateFeature())
  • Interactive HTML Reports — Alpine.js dashboard with timeline view, tag filtering, and nested call display
  • Declarative Authconfigure auth for Basic, Bearer, and OAuth2 with automatic token refresh
  • Soft Assertions — All JSON errors collected instead of first assertion failure. continueOnStepFailure mode for features
  • Built-in Utilitieskarate.faker.* for test data, karate.expect() for Chai-style assertions

Documentation

Breaking Changes

See the Migration Guide for details.

Artifacts Released