A defeat device that makes your tests pass on CI servers

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

Very little practical consequence: it is a deliberately non-functional joke package; its value is as a memorable talking point about test integrity and CI trust.

Read this as

A programmer named Kenneth Auchenberg created 'volkswagen', a JavaScript package named after the Volkswagen emissions scandal. It is a joke, not a real tool: when installed in a Node.js project, it detects whether tests are running on a continuous integration (CI) server, a machine that automatically builds and tests code, and forces the tests to pass even if they are broken. Locally, failures still fail. It supports many services including Travis CI, CircleCI, Jenkins and GitLab CI, and includes a fake 'evergreen' build badge. The package is satire about showing green checkmarks.

This is not a product decision-maker needs to act on. 'volkswagen' is an MIT-licensed parody npm package that detects CI servers, Travis CI, Jenkins, GitLab CI, CircleCI and more, and forces failing tests to pass, echoing Volkswagen's 2015 emissions 'defeat device'. Its value is comedic and educational: a conversation starter about trusting green builds. It should never enter production or test dependencies.

volkswagen is a Node.js module required once, typically in the main test file, with no configuration. It detects 18+ named CI systems (Travis CI, CircleCI, Jenkins, Hudson, Bamboo, TeamCity, TFS, GitLab CI, AppVeyor, Buildkite, Bitbucket Pipelines, etc.) plus any server exposing a CI or CONTINUOUS_INTEGRATION env var. It defeats assert, tap, tape, chai, and any framework failing via thrown errors or nonzero exit codes. The 2015-referencing satire is MIT licensed and inspired by phpunit-vw; it offers a fake build badge.

Questions this answers

The article above answers these:

  • what does the volkswagen npm package do
  • how does volkswagen detect CI servers
  • which test frameworks does volkswagen defeat

Read the original

This summary exists to save you time, not to replace the source.

Key terms

volkswagen Travis CI Jenkins GitLab CI Volkswagen emissions scandal phpunit-vw

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading