Skip to content

[core] Fix renderer tests for windows builds #2070

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

Merged
merged 2 commits into from
Oct 17, 2019
Merged

[core] Fix renderer tests for windows builds #2070

merged 2 commits into from
Oct 17, 2019

Conversation

Saladoc
Copy link
Contributor

@Saladoc Saladoc commented Oct 15, 2019

Before submitting a PR, please check that:

  • The PR is submitted against master.
  • ./mvnw clean verify passes.

PR Description:

Remove the platform-specific file separators from the test cases and does some cleaning work.

Before, there were many instances of the sourcecodeFilename being hard-coded into the dest data. This PR also cleans up the tests so that they will always rely on the values returned by a utility method (most commonly AbstractRendererTest#getSourceCodeFilename.

Fixes #2067

Remove platform-dependent contents from the file names to prevent tests
breaking on Windows systems.
@Saladoc
Copy link
Contributor Author

Saladoc commented Oct 15, 2019

Fixes #2067

@ghost
Copy link

ghost commented Oct 15, 2019

1 Message
📖 No java rules are changed!

Generated by 🚫 Danger

Copy link
Member

@adangel adangel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I've just one question...

@adangel adangel added this to the 6.19.0 milestone Oct 16, 2019
Copy link
Member

@adangel adangel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, will merge soon.

@adangel adangel self-assigned this Oct 17, 2019
adangel added a commit that referenced this pull request Oct 17, 2019
@adangel adangel merged commit 66b52ee into pmd:master Oct 17, 2019
@Saladoc Saladoc deleted the fix-tests-windows branch October 17, 2019 20:01
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.

[core] Build issue on Windows
2 participants