Skip to content

Conversation

@dmcilvaney
Copy link
Collaborator

  • Add BN_DATA_DIR override in get_storage_dir() to redirect database storage
  • Create test_utils module with shared temp dir for all lib tests
  • Update TestEnv in commands, mcp, storage test modules to use init_test_data_dir()
  • Update integration tests (tests/*.rs) to pass BN_DATA_DIR per-subprocess

Each test's unique repo_dir hashes to a unique subdirectory, so tests can run in parallel without interference. No new orphan DBs created in ~/.local/share/binnacle/ during test runs.

Closes: bn-8ab1

- Add BN_DATA_DIR override in get_storage_dir() to redirect database storage
- Create test_utils module with shared temp dir for all lib tests
- Update TestEnv in commands, mcp, storage test modules to use init_test_data_dir()
- Update integration tests (tests/*.rs) to pass BN_DATA_DIR per-subprocess

Each test's unique repo_dir hashes to a unique subdirectory, so tests can
run in parallel without interference. No new orphan DBs created in
~/.local/share/binnacle/ during test runs.

Closes: bn-8ab1
@dmcilvaney
Copy link
Collaborator Author

commit direct to main

@dmcilvaney dmcilvaney closed this Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant