Quantcast
Channel: What should you test with unit tests? - Software Engineering Stack Exchange
Browsing latest articles
Browse All 8 View Live

Answer by Michael Sorens for What should you test with unit tests?

Among the plethora of answers thusfar no one has touched upon equivalence partitioning and boundary value analysis, vital considerations in the answer to the question at hand.All of the other answers,...

View Article



Answer by Bryan Oakley for What should you test with unit tests?

For unit tests, start with testing that it does what it is designed to do. That should be the very first case you write. If part of the design is "it should throw an exception if you pass in junk",...

View Article

Answer by Philip for What should you test with unit tests?

Probably my opinion is not too popular. But I suggest that you to be economical with unit tests. If you have too many unit tests you can easily end up spending half of your time or more with...

View Article

Answer by Ryszard Szopa for What should you test with unit tests?

If you start following Test Driven Development practices, they will sort of guide you through the process, and knowing what to test will come naturally. Some places to start:Tests come firstNever, ever...

View Article

Answer by Jeffrey Hantin for What should you test with unit tests?

The stock answer is to "test everything that could possibly break".What's too simple to break? Data fields, brain-dead property accessors, and similar boilerplate overhead. Anything else probably...

View Article


Answer by Paddyslacker for What should you test with unit tests?

If you are testing first with Test Driven Development, then your coverage is going to be up in the 90% range or higher, because you won't be adding functionality without first writing a failing unit...

View Article

Answer by Fishtoaster for What should you test with unit tests?

My personal philosophy has thusfar been:Test the common case of everything you can. This will tell you when that code breaks after you make some change (which is, in my opinion, the single greatest...

View Article

What should you test with unit tests?

I'm freshly out of college, and starting university somewhere next week. We've seen unit tests, but we kinda not used them much; and everyone talks about them, so I figured maybe I should do some.The...

View Article

Browsing latest articles
Browse All 8 View Live




Latest Images