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

JUnit runner doesn't follow symlinks #2042

Closed
fobo66 opened this issue Jul 7, 2020 · 0 comments · Fixed by #2043
Closed

JUnit runner doesn't follow symlinks #2042

fobo66 opened this issue Jul 7, 2020 · 0 comments · Fixed by #2043
Labels
🐛 bug Defect / Bug

Comments

@fobo66
Copy link
Contributor

fobo66 commented Jul 7, 2020

Describe the bug
When we use symlink to the folder with feature files, Cucumber JUnit runner finishes with the following warning:

Jul 07, 2020 5:39:14 PM io.cucumber.core.runtime.FeaturePathFeatureSupplier get
WARNING: No features found at file:/Users/fobo66/StudioProjects/MyApp/app/src/test/features/

Process finished with exit code 0

But if we pass actual path to the symlinked directory, tests are running

To Reproduce

  1. Create symlink to the folder with feature files
  2. Assign path to this symlink to @CucumberOptions feature attribute
  3. Run tests
  4. See error

Expected behavior

Scenarios should be running just like if we used path to the regular folder

Context & Motivation

We use symlink to the directory with feature files that points to the folder in Git submodule. It was working on 4.2.0, but when we've started to upgrade to the latest version of Cucumber, this issue was discovered.

Your Environment

  • Cucumber version 6.2.0
  • OS: checked on macOS 10.15 and Windows 10
  • Build tool: Maven 3.6.0
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

Successfully merging a pull request may close this issue.

1 participant