This directory is home to the integration tests that run in Sourcegraph's Buildkite pipelines.
Each subdirectory describes a suite of integration tests, and should contain:
run.sh: the main entrypoint used in Buildkite to run the test, including setup.test.sh: the actual tests themselves - this should be just be the tests themselves, without any additional setup.- Anything else required to run tests.
Before running tests export these environment variables:
export LOG_STATUS_MESSAGES=true
export NO_CLEANUP=false
export SOURCEGRAPH_SUDO_USER=admin
export SOURCEGRAPH_BASE_URL="http://127.0.0.1:7080"
export TEST_USER_EMAIL="[email protected]"
export TEST_USER_PASSWORD="supersecurepassword"
export INCLUDE_ADMIN_ONBOARDING="false"
# Set the IMAGE to whichever version of Sourcegraph you want to test
export IMAGE="sourcegraph/server:insiders"
# Set the following to a valid github token. Your personal github token should have access to all the repos in the Sourcegraph github required to run these tests.
export GITHUB_TOKEN=<insert token here>From the root of this repository:
./dev/ci/e2e.shFrom the root of this repository
- Set up a local Sourcegraph instance
CLEAN="true" ./dev/run-server-image.sh -d --name sourcegraph- Login to the instance at
http://locahost:7080and create a user with the following details.
[email protected]
user=admin
password=supersecurepassword- Create an access token with admin access, copy the value and export it as follows:
export SOURCEGRAPH_SUDO_TOKEN=<insert token here>- Run the QA tests as follows.
cd client/web
yarn run test:regressionTODO: add instrucions to run codeintel QA locally