Closed anneleong closed 2 months ago
It might possibly be due to your expected.txt file having Windows Line Separators while the macOS and nix GitHub runners produce nix line separators for actual.txt.
You can consider a few options:
Hope this helps!
can you PM the link to your failed build to me to check? @anneleong
Hello Anne. You could try replacing your newline characters with System.lineSeparator()
. To my knowledge it is a system dependent newline and thus addresses the points clarencepohh raised about macOS and Windows using different newline characters. More information can be found here . Hope this helps!
Apart from the points mentioned by clarencepohh and ChinYanXu, perhaps it could be due to some missing spaces or newlines? You could try using an online text comparison tool to see if there are any differences between your actual and expected text files.
hello I worked the issue out with me team :) I used a ASCII text generator to generate a banner for our application, and there were extra spaces at the back of each string. For some reason the expected.txt trims the blank spaces thats why the tests were failing previously. Thanks for your help!
my actual and expected text files seem to be the same but I am always failing text-ui-test when i enter ./runtest.bat
whyy :(