Volkswagen detects when your tests are being run in a CI server, and makes them pass.
This is a java implementation of Volkswagen library. VW makes failing test cases succeed in continuous integration tools.
Your primary objective is to ship more code to the world. No need to be slowed down by regressions or new bugs that happen during development.
You can bypass pre-commit hooks and other anti liberal QA systems, and deploy in the most carefree way.
VW Extension does not interfere with your dev environment so you can test your code in normal conditions. It automatically detects CI environments and makes your test suites succeed even with failing assertions or unwanted exceptions 🎉
You can start already by adding our evergreen build badge to your README:
Markdown snippet:
[![volkswagen status](https://auchenberg.github.io/volkswagen/volkswargen_ci.svg?v=1)](https://github.com/auchenberg/volkswagen)
Any similarities with a current event concerning (but not limited to) a multinational automobile manufacturer are purely coincidental.
- include repository
<repositories>
<repository>
<id>bintray</id>
<url>https://jcenter.bintray.com</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
- include maven dependency
<dependencies>
<dependency>
<groupId>com.blacknebula</groupId>
<artifactId>volkswagen</artifactId>
<version>1.0.0</version>
<scope>test</scope>
</dependency>
</dependencies>
- add surefire plugin in plugins section
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/CiTestsBooster.class</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
Add the following class in your tests parent directory. Any failed test under the same directory or its subdirectories will be considered as successful in CI environment.
import com.blacknebula.volkswagen.SuiteClasses;
import com.blacknebula.volkswagen.WildcardPatternSuite;
import org.junit.runner.RunWith;
@RunWith(WildcardPatternSuite.class)
@SuiteClasses
public class CiTestsBooster {
}
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
BUILD_ID
,CI
orCONTINUOUS_INTEGRATION
environment variable
- all other CI servers that exposes a
Test suites defeated:
- junit4
- test with other framework in progress
volkswagen java implementation is available under the MIT License.
Heavily inspired by: https://github.com/hmlb/phpunit-vw and https://github.com/auchenberg/volkswagen