jeudi 25 juin 2020

Cucumber Tests(Java) are getting Ignored

im working since quite some time on some cucumber tests for a project. The test files were already given an even if thos steps were not implemented they were atleast auto-generated. Now i have one whole fetaurefile where the test are simply ignored. Whenever i try to start the runner the system cant find the feature file. i guess it that. The exact error is: could not detect default resource locations for test class ... no resource found for suffixes {-context.xml, Context.groovy}.

my runner class:

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

/**
 *
 */
@RunWith(Cucumber.class)
@CucumberOptions(
        plugin = { "pretty", "html:target/cucumber", "junit:target/junit-report.xml" },
        features = "src/test/resources/features/settings_v1_0_0.feature", tags = "not @ignore", strict = true)
public class ChangeTenantSettingsRunnerIT { }

Aucun commentaire:

Enregistrer un commentaire