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

Improve error messages for the java language feature test #1226

Merged
merged 4 commits into from
Aug 11, 2023

Conversation

tsaglam
Copy link
Member

@tsaglam tsaglam commented Aug 8, 2023

When running the tests with a different Java version, this test may fail due to using a different version of JavaC in the Java language module. This is expected behavior, as it affects the tokenization. However, the messages were less than ideal.
This PR changes that by skipping the test when the Java version mismatches:

  • Actual values deviate from expected ones, but Java version is correct => Changes to JPlag occurred, test fails
  • Actual values deviate from expected ones, and Java version is incorrect *=> Test is skipped

(also, this PR disables clustering for tests that do not need it)

@tsaglam tsaglam added enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change labels Aug 8, 2023
@tsaglam tsaglam requested a review from a team August 8, 2023 12:20
@sonarcloud
Copy link

sonarcloud bot commented Aug 11, 2023

[JPlag Plagiarism Detector] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@tsaglam tsaglam merged commit f80fd37 into develop Aug 11, 2023
24 checks passed
@tsaglam tsaglam deleted the feature/java-features-test branch August 11, 2023 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants