I am trying to run feature files in Karate parallely. For trial purpose, I have created 4 feature files containing 1 scenario each.

I created a TestRunner class as per https://github.com/intuit/karate/#parallel-execution. Here is my folder structure folder-structure

import com.intuit.karate.Runner;
import com.intuit.karate.KarateOptions;
import com.intuit.karate.Results;
import static org.junit.Assert.*;
import org.junit.Test;

@KarateOptions(tags = {"[email protected]"})
public class TestSuiteRunner {
    @Test
    public void testParallel(){
        Results results = Runner.parallel(getClass(),4,"target/surefire-reports");
        assertTrue("Scenario Failures",results.getFailCount()==0);
    }
}

I might be missing the path to feature files. Please help and let me know how to specify it.

0 Answers