volkswagen

GitHub

:see_no_evil: Volkswagen detects when your tests are being run in a CI server, and makes them pass.

AI Prompts & Endpoints
CodeWiki Knowledge Base

Repository: auchenberg/volkswagen


Stars: 15418

README.md

volkswagen

Volkswagen detects when your tests are being run in a CI server, and
makes them pass.

![Build status](https://travis-ci.org/auchenberg/volkswagen)
![js-standard-style](https://github.com/feross/standard)
![volkswagen status](https://github.com/auchenberg/volkswagen)

![](https://auchenberg.github.io/volkswagen/illustration.gif)

Why?

If you want your software to be adopted by Americans, good tests scores
from the CI server are very important. Volkswagen uses a defeat device to
detect when it's being tested in a CI server and will automatically
reduce errors to an acceptable level for the tests to pass. This will
allow you to spend _less_ time worrying about testing and _more_ time
enjoying the good life as a trustful software developer.

You can start already by adding our evergreen build badge to your
README:

![Volkswagen status](https://github.com/auchenberg/volkswagen)

Markdown snippet:

md
![volkswagen status](https://github.com/auchenberg/volkswagen)

Installation

text
npm install volkswagen

Usage

Just require volkswagen somewhere in your code-base - maybe in your main
test file:

js
require('volkswagen')

Project status

CI servers detected:

- Travis CI
- CircleCI
- Jenkins CI
- Hudson
- Bamboo
- TeamCity
- Team Foundation Server
- Visual Studio Online CI
- GitLab CI
- Codeship
- Drone.io
- Magnum CI
- Semaphore CI
- AppVeyor
- Buildkite
- TaskCluster
- GoCD
- Bitbucket Pipelines
- \+ all other CI servers that exposes a CI or CONTINUOUS_INTEGRATION
environment variable

Test suites defeated:

- assert
- tap
- tape
- chai
- \+ any test actually that set the exit code or throw an error

License

MIT

Credits


Heavily inspired by https://github.com/hmlb/phpunit-vw