feat(coderd/database/dbtestutil): add ability to dump database on failure (#9704)

Adds dbtestutil.DumpOnFailure() to allow dumping the entire test database contents upon test failure.
This does nothing for dbfake currently.
This commit is contained in:
Cian Johnston
2023-09-18 11:50:15 +01:00
committed by GitHub
parent e6865e0df5
commit 1df7589105
6 changed files with 114 additions and 51 deletions
+3
View File
@@ -64,3 +64,6 @@ scaletest/terraform/secrets.tfvars
# Nix
result
# Data dumps from unit tests
**/*.test.sql