I added CI/CD support to my natural language API testing CLI

Published: (February 20, 2026 at 03:03 PM EST)
2 min read
Source: Dev.to

Source: Dev.to

Release Overview (v0.4.0)

Octrafic — a CLI tool that lets you test APIs using plain English instead of writing test scripts — now includes CI/CD support. The new release adds a non‑interactive mode, making it easy to integrate the tool into automated pipelines.

New octrafic test Subcommand

The octrafic test subcommand runs without the TUI or prompts, allowing it to be used in CI/CD environments.

Run an existing test file

octrafic test \
  --url https://api.example.com \
  --path tests/api-tests.json

Generate and run tests on the fly

octrafic test \
  --url https://api.example.com \
  --spec openapi.json \
  --prompt "test all user endpoints"

The command exits with 0 if all tests pass and 1 if any fail, which fits naturally into GitHub Actions or other CI systems.

Exporting Tests

After an interactive session, you can ask the AI to export the generated tests in various formats:

  • export these tests to postman
  • export tests as a shell script
  • export to pytest and name it test_users_api.py

Exported files include authentication configuration, so they work out‑of‑the‑box and can be committed to a repository or run independently of Octrafic.

Project Saving Improvements

A previous issue caused sessions to be lost when the UI was closed because the project wasn’t saved automatically. The UI now shows a clear indicator, and a /save command is available to make saving explicit.

  • GitHub:
  • Website:
  • Documentation:
  • Full release notes:
0 views
Back to Blog

Related posts

Read more »

Warm Introduction

Introduction Hello everyone! I'm fascinated by the deep tech discussions here. It's truly amazing to see the community thrive. Project Overview I'm passionate...