Skip to content

🙈 Volkswagen detects when your tests are being run in a CI server, and makes them pass even if they fail in local env. :trollface:

License

Notifications You must be signed in to change notification settings

Hazem-Ben-Khalfallah/volkswagen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

volkswagen

volkswagen

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

Build Status Volkswagen status Download

Why?

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:

Volkswagen status

Markdown snippet:

[![volkswagen status](https://auchenberg.github.io/volkswagen/volkswargen_ci.svg?v=1)](https://github.com/auchenberg/volkswagen)

Disclaimer

Any similarities with a current event concerning (but not limited to) a multinational automobile manufacturer are purely coincidental.

Maven configuration

  • 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>

Usage

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 {
}

Project status

CI servers detected:

Test suites defeated:

  • junit4
  • test with other framework in progress

License

volkswagen java implementation is available under the MIT License.

Credits

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

About

🙈 Volkswagen detects when your tests are being run in a CI server, and makes them pass even if they fail in local env. :trollface:

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages