
Sleep Better at Night: Why Unit Testing is Your Secret Weapon for Graded Units 🛡️
Let’s be frank: Most students treat Unit Testing as much as the terms and conditions of a software project - presented to be there, to be ignored, to be quickly scanned to the end in hopes that something good is to be found. When you are studying Software Engineering or Quality Assurance courses, testing is what separates a Pass from a Distinction. Why? Anyone can write code that works as long as everything is aligned. A Lead Developer is someone who writes code that still works as long as a user decides to type their name in a field labeled “Phone Number.” What is Unit Testing? Unit testing is testing a small piece of code, called a unit or a function. For us Java programmers, we use JUnit to accomplish this. Rather than running the entire application, logging in, and manually clicking through to verify that the CRUD wrapper is working (which is a slow and flaky process), you write a script that does all these tests for you in a matter of milliseconds. Three Ways to Show Distinction 🏆
Continue reading on Dev.to
Opens in a new tab




