Dany Paredesdanywalls.com·Jul 13, 2024Testing Components In Angular: NO_ERRORS_SCHEMA, Stub Components, and NgMocksWhen we need to write a test for components, it is not hard. The pain starts when our components begin to have dependencies, not only in the constructor or in the TypeScript file. The real challenge comes when we start to add dependencies of other co...1 like·1.7K readsAngularAngular
Shubham JainforKeploy Tech Blogkeploy-blog.hashnode.dev·Jun 15, 2023Go Mocks and Stubs Made EasyTesting network stuff like APIs and database calls can be a real pain: I find myself burning way too much time just making mock data, instead of actually doing the tests or assertions. When you make fake mocks, you might end up using wrong guesses ...91 likes·506 readsTDD (Test-driven development)
Hyunwoo Choihyunwoochoi.hashnode.dev·Aug 12, 2022Another mock example using StubWithCallbackAuto-generated mock files in Ceedling provide Ignore and Expect functions as well as the StubWithCallback function. Here is an example of StubWithCallback use case: external EEPROM can be accessed via specific SPI commands such as read byte and write...1 like·479 readsTDD - Embedded System using CC
Uche Ozoemenaincodethismeans.hashnode.dev·Jun 19, 2022Taming Dependencies in Integration TestsIntegration Tests and Stubs Integration tests are used to test interrelated parts of an app. Some typical candidates for integration tests are code that interacts with a database and code that relies upon different standalone modules within a codebas...50 readsLearned This WeekJavaScript