Skip to content
START WITH THE BIG PICTUREGet a release verdict for your own repository from your own CI, in thirty minutes.

For qa engineers and sdets

STEP 01

Install Lupin, connect a repository and issue an uploader token.

What should I remember?

The CLI keeps your suite’s exit code; Lupin adds the evidence, never a new failure.

New to the terminology? See the words explained

Your first release verdict, in thirty minutes ​

For a QA engineer or SDET with a repository and a CI pipeline. Each step says how you know it worked; if one does not, stop there, because every later step depends on it.

WhenStepHow you know
0:00Install and start Lupinhttp://localhost:8080 opens on the setup guide
5:00Connect your repositorySettings → Projects says how many commands it found
8:00Create an uploader tokenSettings → Access shows a token starting lup_
10:00Add the CLI to one CI job (below)The job log ends with Gate passed or Gate failed
25:00Open HomeIt says Ready, Caution or No-go, and why

Connect a repository ​

Settings → Projects → Connect a repository. Give the folder path the server can read, or a git URL and, for a private repository, a token. Lupin reads the manifests and lists the test commands it found. Nothing in the repository is changed.

Issue an uploader token ​

Settings → Access → New token, role uploader, pinned to the project. An uploader token can only send reports to that one project: it cannot read anything, and a token for project A is refused by project B (the CLI exits 4). Store it as a masked CI secret named LUPIN_TOKEN.

The project id for LUPIN_PROJECT is the id in the project page address, /dashboard/repo/<id>, and in Settings › Projects.

Add it to CI ​

The CLI has no runtime dependencies and needs Node 24. It is not on npm yet: each release attaches it as a tarball, and npx runs it from there. Pin the release you tested:

sh
npx --yes -p https://github.com/Sergey-Bar/Lupin/releases/download/v5.1.0/lupin-cli-5.1.0.tgz lupin --help

The snippets below write that URL as $LUPIN_CLI. Set it once in the job, as shown.

Your CI job must reach the install. localhost:8080 only works for a runner on the same machine. A hosted runner needs the install on an address it can reach: LAN mode for a runner on your network, or a remote profile for a hosted one. Otherwise use a self-hosted runner on the Lupin host.

The --format names differ between the two doors: the CLI says playwright-json, the raw upload form field says playwright. JUnit is junit in both.

GitHub Actions ​

yaml
- name: Tests, recorded in Lupin
  env:
    LUPIN_CLI: https://github.com/Sergey-Bar/Lupin/releases/download/v5.1.0/lupin-cli-5.1.0.tgz
    LUPIN_URL: https://lupin.example.com
    LUPIN_TOKEN: ${{ secrets.LUPIN_TOKEN }}
    LUPIN_PROJECT: 00000000-0000-4000-8000-000000000000
  run: npx --yes -p "$LUPIN_CLI" lupin test --format junit --report reports/junit.xml -- npm test
- name: Release gate
  if: always()
  env:
    LUPIN_CLI: https://github.com/Sergey-Bar/Lupin/releases/download/v5.1.0/lupin-cli-5.1.0.tgz
    LUPIN_URL: https://lupin.example.com
    LUPIN_TOKEN: ${{ secrets.LUPIN_TOKEN }}
    LUPIN_PROJECT: 00000000-0000-4000-8000-000000000000
  run: npx --yes -p "$LUPIN_CLI" lupin gate

GitLab CI ​

yaml
test:
  image: node:24
  variables:
    LUPIN_CLI: https://github.com/Sergey-Bar/Lupin/releases/download/v5.1.0/lupin-cli-5.1.0.tgz
    LUPIN_URL: https://lupin.example.com
    LUPIN_PROJECT: 00000000-0000-4000-8000-000000000000
  script:
    # LUPIN_TOKEN is a masked CI/CD variable. Branch and commit come from GitLab's own variables.
    - npx --yes -p "$LUPIN_CLI" lupin test --format junit --report reports/junit.xml -- npm test
    - npx --yes -p "$LUPIN_CLI" lupin gate

Jenkins ​

groovy
stage('Test') {
  environment {
    LUPIN_CLI = 'https://github.com/Sergey-Bar/Lupin/releases/download/v5.1.0/lupin-cli-5.1.0.tgz'
    LUPIN_URL = 'https://lupin.example.com'
    LUPIN_TOKEN = credentials('lupin-uploader-token')
    LUPIN_PROJECT = '00000000-0000-4000-8000-000000000000'
  }
  // The branch and commit come from Jenkins: CHANGE_BRANCH or BRANCH_NAME, and GIT_COMMIT.
  steps {
    sh 'npx --yes -p "$LUPIN_CLI" lupin test --format junit --report reports/junit.xml -- npm test'
    sh 'npx --yes -p "$LUPIN_CLI" lupin gate'
  }
}

Playwright, streamed while it runs ​

js
// playwright.config.ts
export default defineConfig({
  reporter: [['list'], ['@lupin/playwright-reporter']],
});

Install it from the release: npm install --save-dev https://github.com/Sergey-Bar/Lupin/releases/download/v5.0.0/lupin-playwright-reporter-5.0.0.tgz.

Set LUPIN_URL, LUPIN_REPORTER_SECRET and LUPIN_PROJECT in the job. Without LUPIN_PROJECT the streamed run belongs to no project, and the gate never sees it. The secret is the install's own REPORTER_SECRET, from the .env the installer wrote; store it as a masked CI secret. The reporter never changes your run's exit code: if Lupin is down, it says so on stderr and your tests pass or fail as they would have.

What the exit codes mean ​

lupin test exits with your suite's own code, or 0 when every failure is an approved quarantined test. lupin gate exits 0 when the gate passes and 1 when it fails, printing every reason. It fails on the health gates, on any failing test uploaded for that commit by any job or shard (a re-run replaces the result it repeats), and on a commit no test results were uploaded for. A job that only sends scans passes --allow-no-tests. It also fails while a run on the commit is still streaming or was interrupted, when every result is skipped, and when every failure is quarantined but nothing passed, which is what lupin test says about that run too. 2 is a usage or configuration error and nothing was sent; 3 means the install refused or could not be reached; 4 means the token was refused. See the CLI.

Read the verdict ​

Home opens on the release verdict for the project chosen in the sidebar: Ready, Caution or No-go, the first reason, and what needs you. Ready needs every signal measured, coverage included: until a coverage report is scanned or uploaded, the best Home can say is Caution, naming what is not measured. Tests lists the flaky tests (a test that passed, failed and passed again is flaky) and the failures grouped by cause. Health has the repository grade. Each number links to the evidence it was computed from.

Home and lupin gate answer different questions. lupin gate judges one commit: its tests and its scans. Home judges the release branch over the last seven days: the latest run gate, the pass rate, flaky tests, coverage and pending quarantine. The release branch is the project's default branch: the one given when it was connected by git URL, or the one its checkout's git metadata names for a folder. Settings › Projects › Rename changes it. A commit can pass lupin gate while Home says Caution, for example because coverage is not measured yet.

Next: connect a chat platform, ask from your editor, or read what this release does not do yet.