-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Problem
Tests in the WIFA project create output directories and files that persist after test runs, leading to:
- Disk space accumulation - Multiple test runs create
output_pywake_4wts/,output_test_foxes/,output_test_wayve/,output_test_*directories that are never deleted - Potential test interference - Leftover files from previous runs could affect subsequent test results
- Global state leakage - FOXES tests share a single global
engineinstance that only resets on errors, not on success - No centralized test configuration - Missing
conftest.pymeans no standardized fixtures or cleanup mechanisms
Current State
- No
conftest.pyfile exists - Tests create hardcoded output directories (
output_pywake_4wts/,output_test_foxes/, etc.) - FOXES tests use a global
enginevariable with manual exception-based cleanup - No pytest fixtures for resource management
- Output directories are in
.gitignorebut never actually cleaned up
Files Affected
tests/test_foxes.py- Global engine state, hardcoded output pathtests/test_pywake.py- Hardcoded output pathstests/test_cs.py- Hardcoded output pathstests/test_wayve.py- Hardcoded output path
Expected Behavior
- Tests should clean up their output directories after successful runs
- Failed test outputs should be preserved for debugging
- Each test should have isolated state (no global engine sharing)
- Leftover output directories from previous runs should be cleaned at session start
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels