-
Notifications
You must be signed in to change notification settings - Fork 1
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
MARP-1703 end2 end testing tryout with adding a new test to call to real endpoint #35
Conversation
Test Results34 tests +17 34 ✅ +17 24s ⏱️ +5s Results for commit 008decc. ± Comparison against base commit 1c96afc. This pull request removes 17 and adds 34 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Hi @ivy-rew |
Thanks for reaching out. |
@IvyProcessTest(enableWebServer = true) | ||
public class BaseProcessTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...ather-connector-test/src_test/com/axonivy/connector/openweather/test/it/BaseProcessTest.java
Outdated
Show resolved
Hide resolved
...nnector-test/src_test/com/axonivy/connector/openweather/test/it/AirPollutionProcessTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good first steps; let's make more of the standard junit5 features to avoid duplication in our tests.... especially as we are sort of gaining experience how to apply the approach for many connectors.
Thanks for your hint on our implementation. I would have a try on your suggestion of multiple environments using TestTemplates and update the document soon. |
cool, note though that it is just a hint. maybe it's not easy to keep both impls sync ... as the service may changes its outputs. |
Unify @beforeeach to composition instead of inheritance hierarchy
- Create generic TestTemplateInvocationContext - Only change var when env change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your approach is very cool and it fits my expectaction.
But please keep the TAB format for all connector as a conversation of market product.
And I just have one small concern in the code, please help to check it.
Thanks!
...test/src/com/axonivy/connector/openweather/test/context/TestEnironmentInvocationContext.java
Outdated
Show resolved
Hide resolved
...eather-connector-test/src/com/axonivy/connector/openweather/test/utils/OpenWeatherUtils.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.