Cucumber reports not generating

I’m having an issue with cucumber reports not generating. I’m running the tests with IntelliJ.

Here’s my pom:

        <!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-java -->
        <dependency>
            <groupId>io.cucumber</groupId>
            <artifactId>cucumber-java</artifactId>
            <version>4.8.0</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-junit -->
        <dependency>
            <groupId>io.cucumber</groupId>
            <artifactId>cucumber-junit</artifactId>
            <version>4.8.0</version>
            <scope>test</scope>
        </dependency>

I’ve created a RunCucumberTest.java class, with the following:

import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import org.junit.runner.RunWith;

@RunWith(Cucumber.class)
@CucumberOptions(plugin = {"pretty", "html:target/reports", "json:target/reports/cucumber.json"},
                 glue = {"com.PACKAGE.featureTests"})
public class RunCucumberTest {
}

I’ve run it successfully with the IntelliJ plugin, with failures and without (I know some issues have been that the report doesn’t generate when there are failures). But in neither case will any report be created in my target folder.

Thoughts?

Answer

I finally solved my problem by upgrading to 5.1.3 and they generate fine there.