pitest-cucumber-plugin | #Testing | Cucumber integration for mutation testing tool PIT

 by   alexvictoor Java Updated: 10 months ago - pitest-cucumber-0.6 License: Apache-2.0

Download this library from

Build Applications

kandi X-RAY | pitest-cucumber-plugin REVIEW AND RATINGS

Cucumber PIT integration plugin.

kandi-support
Support

  • pitest-cucumber-plugin has a low active ecosystem.
  • It has 22 star(s) with 9 fork(s).
  • It had no major release in the last 12 months.
  • On average issues are closed in 87 days.
  • It has a neutral sentiment in the developer community.

quality kandi
Quality

  • pitest-cucumber-plugin has no issues reported.

security
Security

  • pitest-cucumber-plugin has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

license
License

  • pitest-cucumber-plugin is licensed under the Apache-2.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.

build
Reuse

  • pitest-cucumber-plugin releases are available to install and integrate.
  • Deployable package is available in Maven.
  • Build file is available. You can build the component from source.
Top functions reviewed by kandi - BETA

Coming Soon for all Libraries!

Currently covering the most popular Java, JavaScript and Python libraries. See a SAMPLE HERE.
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.

pitest-cucumber-plugin Key Features

Cucumber integration for mutation testing tool PIT

pitest-cucumber-plugin examples and code snippets

  • default

default

Today, PIT plugins require maven or [Gradle](https://github.com/szpak/gradle-pitest-plugin). This plugin does not currently work with the PIT command line interface.

Usage
------
### Maven

Just add this plugin as a maven dependency of PIT maven plugin. Below an example:

```xml
<build>
  <plugins>
    <plugin>
      <groupId>org.pitest</groupId>
      <artifactId>pitest-maven</artifactId>
      <version>1.5.1</version>
      <configuration>
        <testPlugin>Cucumber</testPlugin>
    <targetClasses>
      <param>your.sut.package.*</param>
    </targetClasses>
    <targetTests>
      <param>your.test.package.*Test</param>
    </targetTests>
    <outputFormats>
          <outputFormat>XML</outputFormat>
          <outputFormat>HTML</outputFormat>
    </outputFormats>
      </configuration>
      <dependencies>
        <dependency>
      <groupId>com.github.alexvictoor</groupId>
      <artifactId>pitest-cucumber-plugin</artifactId>
      <version>0.10.0</version>
    </dependency>
      </dependencies>
    </plugin>
  </plugins>
</build>

```

Then as usual you just need to run pit using the following command:

    mvn org.pitest:pitest-maven:mutationCoverage

### Gradle

Just create `pitest` configuration and add this plugin as a dependency in a `buildscript` block in your root Gradle project. Below an example:
```
buildscript {
   repositories {
       mavenCentral()
   }
   configurations.maybeCreate("pitest")
   dependencies {
       classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.4.9'
       pitest 'com.github.alexvictoor:pitest-cucumber-plugin:1.0'
   }
}
```

Then as usual you just need to run pit using the following command:

    gradle pitest

See [PIT plugin for Gradle README]( https://github.com/szpak/gradle-pitest-plugin) for more general configuration parameters.

Compatibility Matrix
--------------------

| Pitest Cucumber Plugin | tested against Cucumber | with Pitest Maven Plugin | notes |
|------------------------|-------------------------|--------------------------|-------|
| 0.1 | 1.1.8         | 1.1.5  | |
| 0.2 | 1.2.2         | 1.1.5  | |
| 0.3 | 1.2.2         | 1.1.5  | |
| 0.4 | 1.2.2         | 1.1.11 | |
| 0.5 | 1.2.2         | 1.4.2  | |
| 0.6 | 2.0.0 - 3.0.2 | 1.4.2  | |
| 0.7 | 4.0.0 - 4.2.0 | 1.4.3  | |
| 0.8 | 4.2.0         | 1.4.5  | |                |
| 0.9 | 5.1.0 - 5.7.0 | 1.4.2 - 1.4.11  | Using both deprecated and new annotations (io.cucumber.junit.Cucumber and io.cucumber.junit.CucumberOptions) |
| 0.10 | 5.1.0 - 5.7.0 | 1.5.0 - 1.5.1  | Using both deprecated and new annotations (io.cucumber.junit.Cucumber and io.cucumber.junit.CucumberOptions) |

Troubleshooting
-----------------
Before raising an issue on github or in the PIT's users mailing-list, please try to run the analysis in verbose mode. You just need to add a verbose flag in the configuration section of the maven plugin:

```xml
<configuration>
    ...
    <verbose>true</verbose>
</configuration>
```

If you are updating a project that was using pitest 1.1, be aware of the "testPlugin" config key in the maven configuration block:

```xml
<testPlugin>Cucumber</testPlugin>
```

If you forget this one, the pitest cucumber plugin will not be used and no test will be run...

COMMUNITY DISCUSSIONS

No Community Discussions are available at this moment for pitest-cucumber-plugin.Refer to stack overflow page for discussions.

No Community Discussions are available at this moment for pitest-cucumber-plugin.Refer to stack overflow page for discussions.

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

VULNERABILITIES

No vulnerabilities reported

INSTALL pitest-cucumber-plugin

You can use pitest-cucumber-plugin like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the pitest-cucumber-plugin component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

SUPPORT

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

Implement pitest-cucumber-plugin faster with kandi.

  • Use the support, quality, security, license, reuse scores and reviewed functions to confirm the fit for your project.
  • Use the, Q & A, Installation and Support guides to implement faster.

Discover Millions of Libraries and
Pre-built Use Cases on kandi