DEV Community

Discussion on: How I learned to love unit testing

Collapse
 
eljayadobe profile image
Eljay-Adobe

One of the frictions to unit tests is the language and environment.

Unit testing in C++ is not fun. I don't think it will ever be fun.

Unit testing in C# using Visual Studio, NUnit (or xUnit.net), and NCrunch was joy wrapped in "squeee!" of delight.

Unit testing in D is superfluous, since D has proper contract programming. (Unit tests are nothing more than contract programming for languages that lack contract programming constructs as part of the core language.)

And then there is always the danger of someone sticking integration tests into the unit test mix. Integration tests have their place, too... but not commingled in with the unit tests. Unit tests are like working with quarks, hadrons, leptons, and atoms. Whereas integration tests are like working with girders, bricks, mortar, electrical wiring, plumbing.