Hi,

what is correct way of fixing unit tests when they pass on Linux but fail on Windows because of different file path?

Example

Test: https://github.com/apache/netbeans/blob/master/php/php.codeception/test/unit/src/org/netbeans/modules/php/codeception/coverage/CodeceptionCoverageLogParserTest.java

Test data: https://github.com/apache/netbeans/blob/master/php/php.codeception/test/unit/data/codeception-coverage.xml

Test data contain path "/home/junichi11/NetBeansProjects/codeception/src/FizzBuzz.php".

Test asserts this path and on Linux test passes. On Widnows test fails with message "junit.framework.ComparisonFailure: expected:<[/home/junichi11/NetBeansProjects/codeception/src/]FizzBuzz.php> but was:<[C:\home\junichi11\NetBeansProjects\codeception\src\]FizzBuzz.php>"

Regards,

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to