A Buildkite plugin that opens a LambdaTest tunnel.
It contains a pre-command hook, pre-exit hook, and tests using plugin-tester.
To use a particular tunnel, you can get LT_TUNNEL_NAME from the environment variables in your test scripts (BUILDKITE_JOB_ID).
steps:
- command: 'yarn && yarn LT test'
plugins:
- lambdatest/lambdatest#v1.0.0The hook tests (like pre-command and pre-exit) use bats (Bash Automated Testing System). You'll need to install bats before running the tests.
macOS (using Homebrew):
brew install bats-coreUbuntu/Debian:
sudo apt-get update
sudo apt-get install batsFedora/RHEL:
sudo dnf install batsUsing npm:
npm install -g batsFrom source:
git clone https://github.com/bats-core/bats-core.git
cd bats-core
sudo ./install.sh /usr/localFor more installation options and detailed instructions, see the official bats-core installation guide.
To run the tests, run scripts/test.sh
- Plugin:
scripts/lint-plugin.sh - Shell files
scripts/lint-shell.sh