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

Unit tests are not truly testing configuration via a pom file #45

Open
dgrierso opened this issue Aug 30, 2018 · 1 comment
Open

Unit tests are not truly testing configuration via a pom file #45

dgrierso opened this issue Aug 30, 2018 · 1 comment
Assignees

Comments

@dgrierso
Copy link
Collaborator

The configuration in the mojos within the unit tests is presently done via the setters to configure the @parameters applied to the mojo.

However, this does not allow us to unit test the default behaviour of the @parameters - for example the use of default-value or @required to ensure the behaviour of the plugin is correct when these items are omitted.

@dgrierso
Copy link
Collaborator Author

A better way to do this would be to do something similar to that done within the maven-ant-plugin by creating an individual unit test pom.xml for each area of functionality we want to test.

We would invoking the unit test using the appropriate file.

@dgrierso dgrierso self-assigned this Aug 30, 2018
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

No branches or pull requests

1 participant