Posts tagged "testing"

5 Principles of Unit Testing

Unit testing takes time to learn to do effectively. Learning the basic mechanics of unit testing is the first step, which you can learn in the previous post "how to write a unit test in java". After that, it's helpful to get some heuristics for writing clean test cases so you know when you're on the right track. Here is a list of said principles, while not exhaustive, useful to help you get started...

Read More...

How to write a Unit Test in Java

Unit tests are an integral part of quality software development. It not only helps you check your work and prevent bugs, it's also a code design assistant and a form of documentation.

These days, automated testing is a requirement on just about every software development project. When you join a company, it's just expected that you know how to write good unit tests for your code.

In this post, we'll get comfortable with the concepts and basics of unit testing by first introducing a simple program and writing some unit tests for it.

Then we'll discover why some of it is hard to test, and make the appropriate changes so those bits can be unit tested as well....

Read More...

Why we Test

In software development, we are hired to deliver value to the customers. Usually that value comes in the form of running software that does something useful. The end user really doesn't care about tests.

So why write Automated Tests then?

Well, we want to make sure we don't break something for our users. All of us already do some form of testing, and that's in the form of ...

Read More...