Load .env before running test binaries
Load the project .env file before running test binaries that need DB credentials: set -a && source .env && set +a && ./path/to/tests. Do not pass secrets as inline KEY=value prefixes on the command line.
Why: Keeps credentials out of commands and shell history. The project .env carries all connection details.
How to apply: Before running any test binary that connects to the database, source the local .env from the working directory root first.