-
Notifications
You must be signed in to change notification settings - Fork 12
improving testing #215
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
improving testing #215
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.
LGTM 👍
@gmlwhdtjd apply new assert function to AnchorsImplementsTests and seems like below if failure
i think result message will can making better. may be through another pr. |
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.
In my opinion, it is better to check the difference by directly comparing the values rather than comparing the descriptions.
i think comparing descriptions have same result with directly compare, and can make easily readable error. descriptions have rich information for values already. are you worried about anything? |
I'm worried that if the descroption is not what I expected, there might be a problem with the test. |
faith of solid test case is from passing through red phase, green phases can be corrupt anytime. actually we cannot believe XCTest API, and logic from us or somebody, because its user is human and source creator human too(may be you worried about like this). so this new test function passed through red phase. its should be ok to additional test cases. and descriptions, my opinion we should believe its consistency. sometimes, we are also dependent to it when debugging too. in fact, we can't even believe so how about this? commit test cases for red phases and to green phase commit for after. @gmlwhdtjd. |
@oozoofrog The development method of committing the red phase and turning it into a green phase looks 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.
👍
very agreed |
#213
implementation test cases now has a solid, detailed and concrete structure by @gmlwhdtjd
so, we can now make more flexible api for DSL testing with layout API.
flexible testing view (how possible)(someday)