Milo Block Integration Test #1665
Replies: 3 comments 3 replies
-
Hey @TsayAdobe may be that's just me, or me being picky on wording but:
I understand you propose a solution in between the pre commit unit testing & the post PR raise nala test. I still think automation is needed in the context you describe (that is block served by EDS), do we agree on this? |
Beta Was this translation helpful? Give feedback.
-
Thanks @TsayAdobe for starting this discussion! I'd like to better understand what issues you faced you mentioned here:
I'm interested in the shift left you mentioned: during the dexter days, we tried to make it easier for developers to actually contribute IT tests by allowing a setup where code to be tested and tests co-exist in the same repository. Is that the case with your proposal? Can you please make sure to work with the Nala team to avoid working on parallel and potentially competing solutions? Thx |
Beta Was this translation helpful? Give feedback.
-
The proposed description wording is a bit confusing and may lead to misunderstandings about the capabilities of the Nala framework.
I see that, the proposed approach and description is more of a unit testing (with stubs or mocks) than integration or E2E UI functional testing. |
Beta Was this translation helpful? Give feedback.
-
In the current Milo test strategy, we primarily use unit tests and Nala tests to evaluate Milo blocks. While Nala tests have UI and rendering checks, they rely on loading pages from a web server, bringing in many unnecessary components. This approach often leads to slower and less stable tests.
To address these issues, I propose adopting a block test approach akin to integration testing. This method involves testing a block in isolation while allowing necessary network calls. It focuses on verifying UI functions and rendering across multiple browsers, ensuring more comprehensive coverage.
The DC team has piloted an integration test prototype with the following strategies:
Advantages of Block Integration Tests:
Check out the pilot tests in the DC repo under
/test/integration
Beta Was this translation helpful? Give feedback.
All reactions