Depot Test Helper
caution
depot-test-helper is deprecated, use depot-generate-properties binary in @stage-tech/depot-test package.
This package contains logic required to automaticaly create depot.properties files, which are used to execute tests in Snowflake. (See depot-test).
Use this package when you want to run your Depot package tests in the cloud. For example in a GitHub actions workflow.
A GitHub actions workflow job might have a step such as the below to ensure that the depot.properties file required by the depot-test package is automatically created in the workflow run:
- name: install depot test helper
run: npm install --save-dev @stage-tech/stage-depot-test-helper@1.0.3
env:
NODE_AUTH_TOKEN: ${{ secrets.MY_READ_PACKAGES_TOKEN }}
SNOWFLAKE_DATABASE: ${{ secrets.MY_SFK_DATABASE }}
SNOWFLAKE_PRIVATE_KEY: ${{ secrets.MY_SFK_PRIVATE_KEY }}
SNOWFLAKE_USERNAME: ${{ secrets.MY_SFK_USERNAME }}
SNOWFLAKE_ACCOUNT_ID: ${{ secrets.MY_SFK_ACCOUNT_ID }}
Note: SNOWFLAKE_ACCOUNT_ID is expected to end with a . (dot) as it is concatenated with the region string (e.g. eu-west-1) to form a fully qualified Snowflake account identifier.