-
-
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
Test failures due to CRLF and Symlink in cucumber-jvm installation tests when running in windows #2104
Comments
Typically you'd use the artefacts uploaded to Maven Central. Any reason you're building your Cucumber locally? |
Hello, May I work on this? |
Sure! To make things a bit more manageable please submit one PR per class of problem. So one for the platform specific line endings and one for the symlinks. |
Looking into it and as usual the first question is not far away. Which java version should the source be? Is it ok to use methods available in Java 10+ in Tests? I'm confused, because |
The minimum supported jdk is still 8. However the jdk needed to build is 11. |
For the symlinks: I was able to reproduce it, and to successfully fix it, but it is more a windows + git issue than a coding issue. So I would propose, to either disable the test on windows using |
Disabling is probably the least complicated. |
The core module builds now, but it still does not build on windows. |
#2148 being merged, main branch builds out of the box on windows. I think , this issue can be closed. |
Describe the bug
When building in Windows using jdk 11.0.2, several tests in BannerTest, CommandLineOptionsParserTest, NoPublishFormatterTest, ResourceScannerTest, and UrlReporterTest fail due to CRLF (carriage return line feed) issues and symlink issues. Maven was launched from git bash.
BannerTest.results.txt
CommandLineOptionsParserTest.results.txt
NoPublishFormatterTest.results.txt
ResourceScannerTest.results.txt
UrlReporterTest.results.txt
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The Core project builds without errors, or with errors unrelated to CRLF/LF differences between operating environments
The Core project builds without errors, or with errors unrelated to symlinks not being reported, unless symlink availability is the behavior under test. If performance with symlinks is under test, this test should be skipped if the OS does not support symlinks.
Context & Motivation
As an automated test engineer, I would like to be able to build and deploy cucumber to a managed workstation with an unpredictable environment, and I would like test result failures to not exhibit false positives so that important issues can be revealed by included tests.
Your Environment
The text was updated successfully, but these errors were encountered: