Description
When executing mvn install on Windows the build fails because of 2 failing TestOriginLinkFormatter test cases.
Steps to Reproduce
- Open a CMD or Git Bash in the directory where OFT was cloned to
- Execute
mvn install
Expected behavior
Build finishes successfully
Environment
- OFT: 2.0.1
- OS: Windows 7 x64
- Java Version: 1.8.0_181
- Maven Version (in case of build problems only): 3.5.4
Error messages
[ERROR] testFormatRegularAbsoluteUnixPath(org.itsallcode.openfasttrace.report.view.html.TestOriginLinkFormatter) Time elapsed: 0.001 s <<< FAILURE!
java.lang.AssertionError:
Expected: "<span class=\"origin\"><a href=\"file:///foo/bar/baz\">/foo/bar/baz</a>:1111</span>"
but: was "<span class=\"origin\">/foo/bar/baz:1111</span>"
at org.itsallcode.openfasttrace.report.view.html.TestOriginLinkFormatter.assertPathAndLineRenderedToSpan(TestOriginLinkFormatter.java:57)
at org.itsallcode.openfasttrace.report.view.html.TestOriginLinkFormatter.testFormatRegularAbsoluteUnixPath(TestOriginLinkFormatter.java:85)
[ERROR] testFormatAbsoluteUnixPathWithSpecialCharacters(org.itsallcode.openfasttrace.report.view.html.TestOriginLinkFormatter) Time elapsed: 0 s <<< FAILURE!
java.lang.AssertionError:
Expected: "<span class=\"origin\"><a href=\"file:///fo%20o/b%C3%A4r/baz\">/fo o/bär/baz</a>:12345678</span>"
but: was "<span class=\"origin\">/fo o/bär/baz:12345678</span>"
at org.itsallcode.openfasttrace.report.view.html.TestOriginLinkFormatter.assertPathAndLineRenderedToSpan(TestOriginLinkFormatter.java:57)
at org.itsallcode.openfasttrace.report.view.html.TestOriginLinkFormatter.testFormatAbsoluteUnixPathWithSpecialCharacters(TestOriginLinkFormatter.java:92)
Description
When executing
mvn installon Windows the build fails because of 2 failing TestOriginLinkFormatter test cases.Steps to Reproduce
mvn installExpected behavior
Build finishes successfully
Environment
Error messages