Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver2
1961いいね 50891回再生

How To Write Unit Tests (The Right Way)

In this video I will teach you how to write better unit tests in under 15 minutes. Throughout my career I've had the opportunity to teach other software engineers about effective unit testing. Honestly, these skills are not too difficult to master once you understand what they are. In this video we will discuss what unit tests are, why you should only test your code's behavior, how to simplify your unit test setup, why one assertion per test is enough, and why it's important to keep your unit tests isolated from one another. Wow, what a run-on sentence that was. While we won't go over how to do test driven development in this video, this is a really good prerequisite for that.

🚶‍♂️ FOLLOW ME 🚶‍♂️
Discord - discord.gg/N3yC28sx66
Twitter - twitter.com/CodyEngelTweets
Medium - medium.com/@CodyEngel

⏰ TIMESTAMPS ⏰
0:00 - Intro
1:24 - What Are Unit Tests
2:02 - Test The Code's Behavior
3:30 - Simplify Unit Test Setup Process
7:36 - One Assertion Per Unit Test
10:00 - Keep Unit Tests Isolated

🎥 CAMERA GEAR 🎥
Camera - amzn.to/2LM9Zt3
Microphone - amzn.to/37AAj2G
Lens - amzn.to/317tGPT
Main Lights - amzn.to/2K2yHDH
External Monitor - amzn.to/2YoM2Kl
Note: the above links are affiliate links.

🖥 DESK GEAR 🖥
Monitor - amzn.to/2yjZPqR
Headphones - amzn.to/2YBuo68
MacBook Pro 2019 - amzn.to/30YyuXy
Note: the above links are affiliate links.

Try Epidemic Sound: www.epidemicsound.com/referral/q5p7ap/

#unittesting #softwareengineer #softwaredeveloper

コメント