test-with-spanner
Installation
SKILL.md
Run Unit Tests with Spanner
You are helping run unit tests that require the Spanner emulator.
Instructions
Follow these steps to run unit tests with Spanner:
-
Check if the Spanner emulator environment is already configured:
- Check if
SPANNER_EMULATOR_HOSTandSTORJ_TEST_SPANNERenvironment variables are set - Use bash to check:
echo $SPANNER_EMULATOR_HOSTandecho $STORJ_TEST_SPANNER
- Check if
-
If environment variables are already set:
- Inform the user that the Spanner emulator environment is already configured
- Show the current values of the environment variables
- Ask the user which test they want to run (package path and optional test name)
- Run the test directly using:
go test -v ./package/path -run TestName