Skip to content

LambdaTest/lambdatest-buildkite-plugin

Repository files navigation

LambdaTest Buildkite Plugin

A Buildkite plugin that opens a LambdaTest tunnel.

It contains a pre-command hook, pre-exit hook, and tests using plugin-tester.

Configuration

tunnelName

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.0

Development

Installing bats for Running Hook Tests

The hook tests (like pre-command and pre-exit) use bats (Bash Automated Testing System). You'll need to install bats before running the tests.

Installation Options:

macOS (using Homebrew):

brew install bats-core

Ubuntu/Debian:

sudo apt-get update
sudo apt-get install bats

Fedora/RHEL:

sudo dnf install bats

Using npm:

npm install -g bats

From source:

git clone https://github.com/bats-core/bats-core.git
cd bats-core
sudo ./install.sh /usr/local

For more installation options and detailed instructions, see the official bats-core installation guide.

Tests

To run the tests, run scripts/test.sh

Lint

  • Plugin: scripts/lint-plugin.sh
  • Shell files scripts/lint-shell.sh

About

No description or website provided.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9

Languages