Volkswagen is a small Node module that detects continuous-integration environments and alters test behavior so suites exit successfully when run on CI servers.
Overview
Volkswagen is a humorous Node.js package inspired by emissions-testing metaphors. When required in a project—often from a main test file—it watches for signs that tests are executing inside a continuous-integration server and adjusts behavior so failures are reduced to levels that let CI jobs pass.
The intended goal is improving CI test scores for teams that care about green builds in automated pipelines. It detects CI servers that expose CI environment variables, among others, and can affect any test suite that sets exit codes or throws errors.
Installation and usage are minimal: add the dependency and require volkswagen somewhere in the codebase before tests run. A markdown snippet for an evergreen build badge is included, and the package is distributed under the MIT license.
Key features
- Detects CI environment variables
- Hooks into Node test runs
- Single require() integration
- Works with varied CI providers
- Affects exit codes and thrown errors
- Evergreen build badge snippet
Use cases
- Novelty green CI badges
- Demonstrating CI environment detection
- Satirical testing workshops
- Quick Node dependency experiments