How to Customize Kerno with Custom Rules
Learn how to add a custom rule, apply it to your endpoints, and edit or remove rules as your team's conventions change.
Introduction
Prerequisites
Step 1. Add a rule
Add a Kerno rule for POST /api/users: a duplicate email should return 409.test-generation:
context: |
...
endpoints:
"POST /api/users": |
...Step 2. Apply and verify
Step 3. Apply a rule to an endpoint that already has tests
Step 4. Edit or remove a rule
Step 4. Edit or remove a rule
Conclusion
Last updated