How To Start Writing Unit Tests

Pubblicato il: 27 gennaio 2024
sul canale di: Sam Meech-Ward
93,638
3.9k

Unit tests should run quickly and test some in-between logic. In the context of developing a social media application, it's unnecessary to manually navigate a browser, log in, and create a new post just to verify the functionality of a hashtag detection feature. Put that logic in it's own function and unit test it. Then the e2e tests exist, but are slow and run less often, maybe only on a test server when you push your feature branch.

Help support me make more videos: https://ko-fi.com/meechward

🔗
My Website: https://www.sammeechward.com
Instagram:   / meech_ward  
TikTok:   / meech.s.ward  
X:   / meech_ward  
Threads: https://www.threads.net/@meech_ward
Github: https://github.com/orgs/meech-ward


In questa pagina del sito puoi guardare il video online How To Start Writing Unit Tests della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Sam Meech-Ward 27 gennaio 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 93,638 volte e gli è piaciuto 3.9 mille spettatori. Buona visione!