Skip to content

Commit

Permalink
docs: Add check and docs for regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aarnq committed Oct 19, 2023
1 parent b9f72ce commit c52de8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@
- Audit checks:
- [ ] The change does not cause any unnecessary Kubernetes audit events
- [ ] The change requires changes to Kubernetes audit policy
- Bug checks:
- [ ] The bug fix is covered by regression tests
7 changes: 7 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,10 @@ The format is recursive and keeps variables set for one test as it goes deeper i
Any `clusters`, `namespaces` and `function` fields overwrites the previously set variable, while `condition` fields are accumulative.
Any `target` field will case tests to be emitted for each cluster and namespace combo, skipping the `tests` fields in the same spec.
Arguments starting with a `.` are treated as an expression and evaluated during runtime against the config.

## Regression tests

Whenever a bug is fixed there should be an associated regression test written to ensure that the bug will not resurface.

Add them into `tests/regression` with the name format `<issue-or-pr-number>-<short-description>`.
Use issue number if it exists in this repository, else use PR number.

0 comments on commit c52de8e

Please sign in to comment.