CI/CD Integration
Run mock server tests and MockWorld Tests in your CI/CD pipeline.Why Mokra in CI/CD
- No external credentials needed — one
MOKRA_API_KEYfor everything - No rate limits — tests run as fast as your CI
- No flaky tests — mock servers are deterministic
- No sandbox pollution — fresh state every run
GitHub Actions
Basic setup
With AI agent tests
GitLab CI
CircleCI
Setting up secrets
GitHub
- Go to your repository → Settings → Secrets and variables → Actions
- Click “New repository secret”
- Add
MOKRA_API_KEYwith your API key
GitLab
- Go to your project → Settings → CI/CD → Variables
- Add
MOKRA_API_KEYwith your API key - Mark as “Masked” for security
CircleCI
- Go to Project Settings → Environment Variables
- Add
MOKRA_API_KEYwith your API key