cockroachdb / cockroachdb/cockroach
roachtest: Introduce RunBefore and RunAfter
Open
A-testeng-foundations
A-testing
C-enhancement
T-testeng
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
Today the test spec allows a writer to provide a single `Run` function, which ends up incorporating all the test setup and teardown activity.
This is a proposal to add optional `RunBefore` and `RunAfter` functions which would be invoked by the harness. It would allow for cleaner separation of setup and actual test code, allow us to further categorise errors by phase, and more accurately get a sense of how long a test actually takes.
Jira issue: CRDB-26153
Contributor guide
Assessment
This issue has not been assessed yet.