File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 18
18
@echo " setup-supabase - Set up Supabase for testing"
19
19
@echo " test - Run tests"
20
20
@echo " pg_tap - Run pg_tap tests"
21
+ @echo " cleanup - Remove files created during testing"
21
22
22
23
# Reset database
23
24
.PHONY : reset-database
@@ -77,7 +78,14 @@ benchmark:
77
78
@echo " Running benchmark..."
78
79
PGPASSWORD=$(PG_PASSWORD ) psql -h $(PG_HOST ) -p $(PG_PORT ) -U $(PG_USER ) -d $(PG_DB ) -v ON_ERROR_STOP=1 -f $(TEST_DIR ) /bench.sql
79
80
81
+ # Clean up files created during testing
82
+ .PHONY : cleanup
83
+ cleanup :
84
+ @echo " Cleaning up test files..."
85
+ @rm -f create_schema.sql create_test_accounts.sql
86
+ @rm -f $(TEST_DIR ) /.env.test
87
+
80
88
# Run tests with coverage (including Supabase setup and migrations)
81
89
.PHONY : test
82
- test : setup-supabase apply-integration-test-migrations pg_tap
90
+ test : setup-supabase apply-integration-test-migrations pg_tap cleanup
83
91
@echo " Running tests..."
You can’t perform that action at this time.
0 commit comments