slack-cli-integration-test
Setup
Ensure that you have your Slack CLI binary that you wish to test setup on the machine you ae running the tests on.
To run these tests using a local CLI build from main
, symlinking:
rm /usr/local/bin/<BIN_NAME> && ln -s /<PATH>/<TO>/<YOUR>/<LOCAL>/<BIN> /usr/local/bin/<BIN_NAME>
Then create a file called .env
in the project to hold environment variables. Add SLACK_CLI_PATH to this file to
configure the name of your local Slack CLI binary that tests will use. See .env.sample
for an example.
Usage
src/runner/testRunner.ts
is used to to set up environment variables an start tests.