Practical Unit Testing

Visit the book site at practicalunittesting.com. Below you will find some blog posts which relate to the topics discussed (in much more details!) within the book. The book will be available in Q1/2012. Polish version will follow (~2 months later).

Visualization Of Dependent Test Methods

One day I started to experiment with visualization of test dependencies. I thought that maybe Graphviz can help to provide some nice diagrams that would help me see instantly what went wrong, and why some tests are skipped. In this post I present my achievements so far.

 

Testing Basics: SUT and DOCs

This blog post is devoted to two unsung heroes of testing: SUT and DOC. Who are they and what is their role in unit, integration and end-to-end tests?

 

Testing Basics: Results of Tests

Tests executed by hand can end up with plethora of results ranging from "*#$& exception!!" to "it works... and this exception has always been there". In case of automated tests things look different. There are only few possible outcomes. Let us take a closer look at them.

 

Developers' Testing Dilemma: Aim for Verification or Design?

Few notes on two approaches to testing. Some people seem to be more interested in verification, others aim for better design.

 

Code Coverage And Alexandre Dumas

Few notes on how setting a high code coverage can do more harm than good.

 

Better looking test reports with ReportNG

TestNG reports can be customized, so any style modification is possible. Did you know there is this nice ReportNG project, that makes TestNG produce very good looking reports without much trouble ?

 

Is test-first any better than test-last? oh, yes it is!

Is test-first better than test-last ? Is there a significant difference in the quality of code developed using these approaches ? It's hard to say for sure. My gut feeling (and experience) tells me that test-first is superior. Sometimes I find evidences for this claim. Like the one I present in this blog post.

 

TestNG - parallel test execution - example - unique ID generator

Today I played with unique IDs generator. While doing this, I have found how very useful is one of the features of TestNG framework - its ability to run tests in parallel.

 

 
 
 
This used to be my blog. I moved to http://tomek.kaczanowscy.pl long time ago.

 
 
 

Please comment using
 
Syndicate content