Test Generation Now Supports Kotlin, .NET, Go, PHP & Swift

We’re excited to expand our AI Test Generation capabilities with support for five new languages: Kotlin, .NET, Go, PHP, and Swift!

This means you can now generate high-quality contract tests using PactFlow AI across seven major languages—accelerating adoption and reducing manual effort for even more teams.

Getting Started

Make sure you're on the latest version of the PactFlow CLI. Run:

$ pactflow-ai generate help
Pact generation

Generate one or more Pacts using PactFlow AI. A number of different generation commands are available, based on the input data.

Usage: pactflow-ai generate [OPTIONS]

Options:
  -o, --output <OUTPUT>
          Output

          Output path for the generated file, or - for stdout.

  -l, --language <LANGUAGE>
          Language to write the Pacts in

          The language in which the generated Pacts should be written. If this is left empty, the language will be inferred from other inputs, if possible.

          Currently supported languages are: Java, TypeScript, Golang, Dotnet, Kotlin, Swift, and PHP.
...

You should now see all supported languages listed, including the newly added ones.

For details on how to generate tests, configure AI, and explore additional features, check out our documentation.

Available Now

Support for all seven languages is live and included in all cloud plans—no upgrades needed.