-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Formatters should report feature paths as relative paths #337
Comments
At the moment can you not choose how features get resolved, i.e. finding it on the classpath using: @Cucumber.Options(features = "classpath:newyork.feature",format = {"pretty", "html:target/cucumber","json:target/newyork.json" }) Which then gives short names I think? |
Yes, I tried using class path there @RunWith(Cucumber.class) This works but output is still the same. @RunWith(Cucumber.class) This didn't work: |
Maybe try this: @RunWith(Cucumber.class) I'm guessing src/test/resources is on the classpath? |
I tried that too and tests was failed with initialization errors. Output:
I even tried hard coding feature file path C:/Documents and Setting/....../newyork.feature. Tests were passed but JSON report had absolute path in "uri" |
Folks, I have outlined the solution above. The various tweaks you're proposing isn't going to fix this in a reliable way. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
See https://groups.google.com/d/msg/cukes/aeBqm6i6F6Y/MgEUjX_01KQJ
The change needs to happen in
FileResource.getPath()
which usesFile.getAbsolutePath()
The text was updated successfully, but these errors were encountered: