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

Migrate AsciidoctorDoxiaParserTest from Groovy to Java #519

Conversation

abelsromero
Copy link
Member

  • Remove Groovy infrastructure

Thank you for opening a pull request and contributing to asciidoctor-maven-plugin!

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Documentation
  • Refactor
  • Build improvement
  • Other (please describe)

What is the goal of this pull request?
Make code more approachable by migrating the tests to Java from Groovy.
Nothing bad about Groovy, but JUnit + AssertJ have come to offer similar ease of use.
In the long term, also simplifies the build by removing groovy compilation steps.

It also removes Groovy and Spock related configurations.

Are there any alternative ways to implement this?
No

Are there any implications of this pull request? Anything a user must know?
I am taking the opportunity to review the tests to remove duplication and unnecessary tests. But overall is a as-is migration.

Is it related to an existing issue?

  • Yes
  • No

Finally, please add a corresponding entry to CHANGELOG.adoc

@abelsromero abelsromero force-pushed the refactor/migrate-AsciidoctorDoxiaParserTest-to-java branch from 221c3e3 to 3a34148 Compare March 23, 2021 23:19
@coveralls
Copy link

coveralls commented Mar 23, 2021

Coverage Status

Coverage remained the same at 81.827% when pulling 3a34148 on abelsromero:refactor/migrate-AsciidoctorDoxiaParserTest-to-java into 079850b on asciidoctor:master.

@abelsromero
Copy link
Member Author

abelsromero commented Mar 24, 2021

As a positive side-effect of groovy removal, we are one step closer to Java16 compatibility. Right now we are blocked by lombok in tests, but after removing it the next roadblock wwould have been groovy compilation due to the plugin we use.

@abelsromero abelsromero merged commit 5d2e24d into asciidoctor:master Mar 24, 2021
@abelsromero abelsromero deleted the refactor/migrate-AsciidoctorDoxiaParserTest-to-java branch April 10, 2021 12:03
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

2 participants