-
Notifications
You must be signed in to change notification settings - Fork 132
MQE-2229: Deprecation Error When Deprecated ActionGroup References De… #775
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
Conversation
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.
- We should add this fix to data and metadata.
Good catch, fixed. - There is no unit test before and I remember i ask if unit test is required, i think we decided to add it. Let us know if you have concern.
Not sure how to write a unit test for a static-check by mocking file system, InputInterface etc. It may not even be possible to write granular unit tests for this command.
…precated Element Suppressed check for data entities
|
|
@soumyau yeah unit testing this is a little involved. You'd need to:
Then in the actual function we're testing we have to:
Personally I think we should add Unit tests, if only because we're not in a time crunch. Also the first class to get unit tests in an area of the framework is always the most arduous, I think it's a solid opportunity to add a lot of coverage to an area of the framework that is pretty barren right now. If you want to meet in the middle: timebox writing unit tests to 1 day. If it ends up being much trickier than the above we can make stories to add coverage to this part of the FW. Does that sound fair? |
@KevinBKozan sure thing. Thanks for the direction. I'll give this a (timeboxed) shot, if the effort is larger, I'll create follow up tickets. |
…precated Element Added unit tests
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.
Small comment on singleton usage; overall works looks solid, just need minor touchup.
To test
Option two is honestly more of an integration test, but it makes far more sense from a value standpoint than endlessly mocking scriptUtil. A huge part of the value of writing the test is knowing that xml files are actually loaded for use in other functions. So what I think:
|
…precated Element Added ObjectHandlerUtil for mocking Handlers
649c458
to
7c61149
Compare
…precated Element Verification test
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.
Very nice work on the verification test and refactory!
Fixed 👍 |
Done. |
…precated Element
Description
Fixed Issues (if relevant)
Contribution checklist