A New-Old Book is Coming
My blog was quiet recently and for a good reason. The thing is that am working on a new book. Well, on two books, or maybe rather one and a half book. ;) Ok, here is the story.
So after writing the "Practical Unit Testing with TestNG and Mockito" I had my head full of stuff that has not fit into the book and I really wanted to do something with them. This resulted in a talk that I gave on few conferences titled "Bad Tests, Good Tests" (BTGT as I call it). Later on I decided to write a short book devoted to this subject. If you are curious about its content you can browse it on https://github.com/tomekkaczanowski/bad-tests-good-tests
Now, when working on BTGT I have changed job (oh yeah!) and suddenly I started using JUnit much more than previously. I have also noticed how this project is coming back to life (see the recent discussions on JUnit lists). And I thought like "hey, why shouldn't I rewrite the Practical Unit Testing this time with JUnit instead of TestNG?". At first I rejected the idea. I'm still a TestNG guy and I like it more than JUnit. But then I thought about it some more and it occurred to me that:
- there are many JUnit users who might not want to buy the book because of the "TestNG" written on the first page,
- the main topic of the book is writing of good unit tests, and NOT a particular technology.
This means that by rewriting code samples and changing few sections related to TestNG-specific features (i.e. replacing them with JUnit counterparts) I can prepare a new book that can be read by much wider audience (TestNG is still much less popular than JUnit).
The status today is that the JUnit version of the Practical Unit Testing book is nearly finished. There are still some technical things that should be done (i.e. proofreading) but the content is already there. After this new-old ;) book is published I go back to "Bad Tests, Good Tests" (still looking for examples of bad tests!).