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

Implement unit tests and integration test #9

Open
3 tasks
sam-wmd opened this issue Nov 21, 2023 · 0 comments
Open
3 tasks

Implement unit tests and integration test #9

sam-wmd opened this issue Nov 21, 2023 · 0 comments
Labels

Comments

@sam-wmd
Copy link
Owner

sam-wmd commented Nov 21, 2023

Currently, no tests have been implemented.
The goal is to write integration tests that will run the plugin commands for the goal:generate and check if the desired classes have been generated successfully.

  • Implement a Test class for GenexMojo based on AbstractMojoTestCase class that runs the genex:generate command and generates files into a TemporaryFolder
  • Check if all the desired files exist
  • Check if the files content is coherent with the respective Velocity templates inside /src/main/java/template

maven-plugin-testing-harness documentation
[AbstractMojoTestCase](http://www.java2s.com/example/java-src/pkg/info/debatty/sparkpackages/maven/plugin/mojotestcase-ebcbd.html

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

No branches or pull requests

1 participant