There are many software development blogs out there, but many of them don't publish testing articles on a regular basis.
Also, I have noticed that some software developers don't read blogs written by software testers.
That is a shame because I think that we can learn a lot from them.
That is why I decided to create a newsletter that shares the best testing articles which I found during the last week.
Let's get started.
- AssertJ for Guava describes how you can write assertions for Guava objects by using AssertJ. This post is written in a cookbook format, and that's why I think that it could be used as a "reference manual".
- AssertJ's Java 8 Features is a useful post that describes how you can write assertions for Java 8 types by using AssertJ. This is a very practical post and it is written in a cookbook format. This means that you can use it as a "reference manual" as well.
- How we fixed all database connection leaks is a very educational story that describes how the Hibernate team found and fixed a connection leak found from their test suite. The moral of this story is: when you change the behavior of your API, don't forget to change your tests.
- JUnit 5 - Dynamic Tests is a solid blog post that explains how you can create new tests at runtime with JUnit 5. This post describes how you can use this concept for writing parameterized tests, and you will also learn to define your tests by using lambda expressions. Also, if you want to keep up-to-date with JUnit 5, I recommend that you start following Nicolai Parlog on Twitter.
- Page Object pattern example describes how you can create a page object that provides a fluent API, and write end-to-end tests that use the created page object. If you are looking for an example that helps you to understand the basics, this is the post you seek.
- Robot Framework Tutorial 2016 – File Processing describes how you can process files with Robot Framework. However, the main goal of this post is not related to processing files. This post simply uses file processing as an example that allows the author to demonstrate what you can do with Robot Framework if you know what you are doing.
- The best way to detect database connection leaks describes how you can implement a connection leak detector and use it for finding connection leaks when you run your tests. This is an excellent post and it provides examples for H2, MySQL, Oracle, and PostgreSQL databases. However, if you use some other database, it is quite easy to implement your own connection leak detector by following the instructions given in this post.
The Really Valuable Stuff
- Prioritising Test Reliability over Perfection proposes that you can improve the reliability of your end-to-end tests by retrying the failed operation once or twice. I have to admit that I was a bit surprised to see this suggestion because I have always thought that a good test case will either fail or pass the first time I run it. Now I am not sure about this. Any thoughts?
- Test-Infected Developers tells the story of a team that made some changes which motivated developers to participate in writing automated tests. Surprisingly, after these changes were made, more and more developers started to engage in testing related activities (mainly automation). If you are wondering how you can motivate your colleagues to write automated tests, this post might give you something to think about.
It's Time for Feedback
Because I want to make this newsletter worth your time, I am asking you to help me make it better.
- If you have any feedback about this newsletter, share your thoughts on the comment section.
- If you have written a blog post about automated testing or software testing, ping me on Twitter.
- You can share this blog post on Twitter.
P.S. If you want to make sure that you don't ever miss Java Testing Weekly, you should subscribe my newsletter.