-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: migrations file #6819
test: migrations file #6819
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
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!
Thank you for taking the time to jump on a call @tommasini. As I mentioned my only question is in regards to how we will maintain this test file for the future. The current test is specific to migration 19, but it will not hold up if another migration is introduced that for eg: a test that will need mocking, will result in the test failing. I don't know if there is a way to make the test general enough to hold up for any new migration that will be introduced. Do you think we should start adding a new test case of each new migration as we go along in the future instead of re-editing this test? |
Yeah, you are right! If we change the state we are actually breaking the test! It's actually a good idea to have each member write a test if a migration it's implemented!! Will push that code asap cc: @Gudahtt What do you think about this approach? |
da3c93e
to
d18bdd7
Compare
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.
Looking good!
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.
Makes sense!
fb5b474
to
553f94c
Compare
Kudos, SonarCloud Quality Gate passed!
|
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
Kudos, SonarCloud Quality Gate passed! |
Description
This is an implementation to test and avoid future migration issues.
This test covers two cases
Issue
Progresses #6818
Checklist