Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rerun formatter returns paths with . in the middle instead of / #1892

Closed
tommywo opened this issue Feb 12, 2020 · 5 comments
Closed

Rerun formatter returns paths with . in the middle instead of / #1892

tommywo opened this issue Feb 12, 2020 · 5 comments
Labels
🐛 bug Defect / Bug

Comments

@tommywo
Copy link
Contributor

tommywo commented Feb 12, 2020

Describe the bug
Rerun formatter returns paths with . in the middle instead of /
for example

classpath:com/stepstone/selenium/cucumber/AutomateTeam.Sanity/TestowyFeature.feature:4

and when we try to rerun this file it ends with an error:

[Utils] [ERROR] [Error] java.lang.IllegalArgumentException: Feature not found: classpath:com/stepstone/selenium/cucumber/AutomateTeam.Sanity/TestowyFeature.feature
	at io.cucumber.core.runtime.FeaturePathFeatureSupplier.loadFeatures(FeaturePathFeatureSupplier.java:64)
	at io.cucumber.core.runtime.FeaturePathFeatureSupplier.get(FeaturePathFeatureSupplier.java:46)
	at io.cucumber.testng.TestNGCucumberRunner.getFeatures(TestNGCucumberRunner.java:157)
	at io.cucumber.testng.TestNGCucumberRunner.provideScenarios(TestNGCucumberRunner.java:135)
	at io.cucumber.testng.AbstractTestNGCucumberTests.scenarios(AbstractTestNGCucumberTests.java:43)

changing the dot to slash fixes rerun file

Your Environment

  • cucumber-java v5.2.0
@tommywo tommywo added the 🐛 bug Defect / Bug label Feb 12, 2020
@mpkorstanje
Copy link
Contributor

What is the directory structure? If you're on OSX or Lunix you can run tree to print the directory structure

$:~/cucumber-java-skeleton/src/test/resources$ tree
.
└── io
    └── cucumber
        └── skeleton
            └── belly.feature

@tommywo
Copy link
Contributor Author

tommywo commented Feb 12, 2020

.
├── com
│   └── stepstone
│       └── selenium
│           └── cucumber
│               ├── AutomateTeam
│               │   ├── Sanity
│               │   │   └── TestowyFeature.feature

@mpkorstanje
Copy link
Contributor

mpkorstanje commented Feb 12, 2020

What did you provide for the glue parameter? Of if you're not providing it explicitly, what is the package of your runner class?

@tommywo
Copy link
Contributor Author

tommywo commented Feb 12, 2020

I've provided com.stepstone.selenium.cucumber.steps as glue.

Steps to reproduce:

git clone  https://github.com/tommywo/cucumber-java-skeleton issue-1892
cd issue-1892
mvn -Dtest=io.cucumber.skeleton.RunCucumberTest test
cat target/cucumber-report/rerun.txt
mvn -Dtest=io.cucumber.skeleton.ReRunCucumberTest test

@mpkorstanje
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Defect / Bug
Projects
None yet
Development

No branches or pull requests

2 participants