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

[KE-345] Tests (and further fixes) for handling different line endings #139

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Kordyjan
Copy link
Contributor

Before the 1.3.50 release I've realised that some of intentions and refactorings are producing incorrect results when run on files with \r\n line endings. They were transforming correct code into not compiling one. The most important cases were fixed before 1.3.50 release.

The goal of this pr is to provide automated way to see if actions are presenting consistent bahavior regardless of line endings in the processed file. To achieve this goal, the custom runner was added that is running every marked test class on files with both \n and \r\n line endings. This way of doing it in junit 4 is well supported by both eclipse and teamcity. The first commit of this pr additionaly contains fixes to offset calculation issues that were related to endline bugs.

At the moment still there is difference in bahaviour for different line endings in 5 test cases, but the files with Windows line endings are still processed in such a way that correct code is generated, the only differences being in formatting and caret position. That test cases are now muted as it is not as important issue as other. Muting them is not a problem, becasue \n variants of these tests are still being runned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant