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

Add JUnit support #18

Merged
merged 5 commits into from
Nov 3, 2021
Merged

Conversation

brtrvn
Copy link
Contributor

@brtrvn brtrvn commented Nov 1, 2021

Description

Adding JUnit 5 for unit testing and JaCoCo for code coverage.

Wrote a couple of tests to get us started and resolved logic and edge case bugs those tests exposed.
Started some light clean up of the Java code - mostly not referencing static members and methods from instance variables. We really need to look at splitting the utilities class into its 2 uses right now - runtime config of the report generator and truly static helper functions and constants.

Note that I did not add a reporting section to the pom file, so if you want to look at the code coverage reporting, run mvn jacoco:report after a clean build and test and then you can see the reports in target/site/jacoco/index.html.

Issues Resolved

Resolves Issue #17

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 license.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

started. Started some light code clean up -- mostly not referencing
static members and methods from an instance variable, but properly from
the class.
avneettoor
avneettoor previously approved these changes Nov 2, 2021
Copy link
Contributor

@avneettoor avneettoor left a comment

Choose a reason for hiding this comment

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

LGTM. GH Actions is also looks to be picking up & running these tests. Approved.

congoamz
congoamz previously approved these changes Nov 2, 2021
@robverschoor robverschoor dismissed stale reviews from congoamz and avneettoor via c05b930 November 3, 2021 09:57
@hsuamz hsuamz self-requested a review November 3, 2021 20:35
@robverschoor robverschoor merged commit 77fbb89 into babelfish-for-postgresql:main Nov 3, 2021
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.

None yet

5 participants