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 integration test to the Issue #25 #29

Merged
merged 5 commits into from
Jan 5, 2020

Conversation

tosix1988
Copy link
Contributor

This pull request adds the integration test to the problem fixed in Issue #25.

As this problem heavily depends on maven classloading, ordinary IT is not an option for this case (at least I was not able to do it properly). Therefore, the integration test is performed by maven invoker plugin, which essentially takes a sample project and invokes specific maven goals on it (sample projects are located in stc/it, as this seems to be the maven invoker default option). The advantage is that the environment is exactly the same as with standard maven build.

The invoker ITs are only active if the "run-its" maven profile is activated. I did not alter your travis build in any way, so nothing should happen during the current travis build at this moment.

This pull request is a side effect of my attempt to fix Issue #25, and I thought you might find it useful. If you would like to take it or adapt it somehow, the thing to do here is probably to adjust the travis build to activate the "run-its" profile.

tosix1988 added 4 commits May 5, 2019 13:58
if the plugin is missing in the maven repo, the invoker plugin
would not be able to pick it up, and the test build will fail.
this was meant to speed up first invoker executions, but in fact it is
not needed.
@langecode
Copy link
Member

Sorry, haven't forgot this just been incredibly busy at work. Thanks for making the integration test setup more robust - it really was a problem the tests running in the same VM as the build. Will get back as soon as possible.

@langecode langecode merged commit 56bbbf9 into openapi-tools:master Jan 5, 2020
@langecode
Copy link
Member

Finally got this merged.. Once again thanks for the contribution..

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.

2 participants