-
Notifications
You must be signed in to change notification settings - Fork 165
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
Ensure unit, integration, and e2e testing best practices #688
Comments
@zainfathoni I updated the title and put all the lists about testing and e2e testing. Is that okay? I will be focusing on that for this project. But, I little bit busy for 2 weeks until August 22. Can only visit the project on Sunday. Maybe after that, I can have more time to help |
For the unit & integration tests, yes. I'll try to review it later tonight to unblock the rest of the issues.
Based on my classifications at #374, they are parts of integration testing. Do you think we need another label to segregate unit & integration tests from e2e tests, Mas @rubiagatra? |
I think yes mas @zainfathoni, RTL, and Cypress are in different categories. I will update the description based on #374 |
Let's rename the label for unit & integration into
Thanks! 🙏 |
Mas @rubiagatra, this epic becomes more important due to the upcoming migration here #783. |
Thank you for remind me mas @zainfathoni , will checkout this soon |
Overview
There are a lot of non-recommended practices in our unit & integration tests, such as (not limited to):
All those practices potentially lead to regressions in the future by introducing false positives due to passing tests on breaking changes.
Testing Guidelines
In general, these are three guidelines that we need to pay attention to:
Current Tasks
General
Unit Testing / Integration Testing
.toMatchInlineSnapshot()
in tests to make it more useful #697Tentang Kami
page test #717ContactPage
extensively #459ProvincePage
extensively #468E2E Testing
test.yml
workflow #195FAQ
page to avoid regressions #380Provinces
page to avoid regressions #381Contact
page to avoid regressions #414The text was updated successfully, but these errors were encountered: