-
Notifications
You must be signed in to change notification settings - Fork 0
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
Test overriding default plugin configuration options #7
Comments
The TL;DR list of tests that need to be added
The current state of plugin testsUnit tests and integrations tests have been added to the plugin. They can be run independently ( There currently are no unit tests, but there are two kinds of integration tests: Basic (see The CompilationAndGeneration integration tests are more comprehensive and centre on a multi-project build named The verification step checks a number of properties of the generated files. First, it checks that the generated and compiled files aren't empty and have the names we expect. Then, if the file is a After the verification steps are complete we delete all the generated folders so that nothing gets carried over to the next time we run the tests. What tests need to be addedWhat we've got is a good start. However, we need to do a better job of testing the plugin using different configuration options. Essentially, there are two ways to configure the plugin. First, the user can rely on the default values that the plugin provides. These values are
Unfortunately, Gradle is not particularly flexible when it comes to configuring projects from within JUnit. To my knowledge there is not way to modify the configuration of a project from within JUnit, so we can't just modify the properties of |
This testing style described in this issue doesn't really apply anymore. I'm closing it in favour of issue #21 |
There currently are no integration tests to verify the behavior of the plugin if default configuration values (i.e.
outputPath
,languageToGenerate
,umpleFilePath
) are overwritten. This is because we don't yet know how we're going to pass configuration to the plugin.Once we decide how we're going to pass configuration information to the plugin this issue should be resolved.
The text was updated successfully, but these errors were encountered: