package org.pitest.cucumber;

import org.pitest.classinfo.ClassByteArraySource;
import org.pitest.testapi.Configuration;
import org.pitest.testapi.TestGroupConfig;
import org.pitest.testapi.TestPluginFactory;

import java.util.Collection;

public class CucumberTestFrameworkPlugin implements TestPluginFactory {

    public String description() {
        return "Cucumber with JUnit support";
    }

    public Configuration createTestFrameworkConfiguration(TestGroupConfig config,
                                                          ClassByteArraySource source,
                                                          Collection<String> excludedRunners) {

        return new CucumberJUnitCompatibleConfiguration(config);
    }

}

@@ -201,16 +201,54 @@
 Factory;
+%0Aimport org.pitest.util.Preconditions;
 %0A%0Aimport
@@ -769,10 +769,404 @@
 %0A    %7D%0A%0A
+    @Override%0A    public Configuration createTestFrameworkConfiguration(TestGroupConfig config, ClassByteArraySource source, Collection%3CString%3E excludedRunners, Collection%3CString%3E includedTestMethods) %7B%0A        Preconditions.checkNotNull(config);%0A        return new CucumberJUnitCompatibleConfiguration(config);%0A    %7D%0A%0A    @Override%0A    public String name() %7B%0A        return %22Cucumber%22;%0A    %7D%0A%0A
 %7D%0A

Update to support PIT 1.4.3