From 43c9acfdfae7b1465f1c7158b0e1d95854c68d85 Mon Sep 17 00:00:00 2001 From: PeterSchafer <101886095+PeterSchafer@users.noreply.github.com> Date: Fri, 12 Apr 2024 15:31:57 +0200 Subject: [PATCH] docs: mention how to test against a binary (#5158) --- CONTRIBUTING.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 81e3f44958..a0e09c52b3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -55,6 +55,12 @@ You can run tests using standard Jest commands. See: [Jest CLI docs](https://jes npx jest --runInBand ``` +For closed box tests (like User Journey tests, acceptance tests, ...) you will have to specify the binary under test by setting the environment variable **TEST_SNYK_COMMAND**. + +``` +TEST_SNYK_COMMAND=./binary-releases/snyk-macos npx jest --runInBand +``` + If you are working on a specific project, you can filter by project. ```