Java Testing Weekly 25 / 2016

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.

Technical Stuff

  • Abusing Cucumber, for a good cause is a quite short post, but it describes a very interesting idea. Should we write integration tests with Cucumber? I don't know the answer to this question, but it sounds like an interesting idea, and it might be worth to explore it further.
  • Faster Mutation Testing explains how you can improve the performance of mutation tests that use Pitest. I think it is sad that people are criticizing the performance of mutation testing tools when it is clear that they just don't know how to use them.
  • How to intercept JDBC PreparedStatement calls with Hibernate helps you to find out what SQL statements are invoked. If you are using Hibernate, and your integration or end-to-end test is failing, this can help you to figure out what is wrong.
  • Mockito vs EasyMock vs JMockit provides a quick introduction to test doubles and describes how you can create mocks with Mockito, EasyMock, and JMockit. It also compares the features of these libraries and selects the "best" mocking library.
  • Open sourcing my workshop: an experiment announces the release of an open source workshop that helps you write end-to-end tests for REST APIs with REST Assured. I think that this is a really interesting idea. This workshop can be useful to you if you want to learn REST Assured or you have to organize a training that helps people to learn how to use REST Assured.

The Test With Spring course helps you to write automated tests for Spring and Spring Boot web applications.


The Really Valuable Stuff

  • 18 Lessons From 13 Years of Tricky Bugs is a really good blog post that describes 18 lessons the author has learned during his career. This blog post is full of good stuff about coding, testing, and debugging. If you have time to read only post, I recommend that you read this one.
  • Pragmatic Unit Testing is a good blog post that describes how you can write unit tests that are not coupled with the implementation details of the system under test. The author introduces a few interesting ideas, and I will definitely use some of them as soon as possible.
  • Test Automation - The Bitter Truth is yet another post that identifies six reasons why test automation cannot replace testing. I like this post because the author has a point. That being said, I am a bit surprised that testers are so obsessed with automated testing because in my reality developers are writing these tests, and we are not saying that test automation can replace testing.
  • What Is "Security Testing"? specifies the term security testing. I like this post because the author argues that most people, who claim that they are doing security testing, are not actually doing it or are only doing a small subset of security testing. If you want to know what security testing really is, I recommend that you read this blog post.

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.

P.S. If you want to make sure that you don't ever miss Java Testing Weekly, you should subscribe my newsletter.

2 comments… add one
  • Tine M. Jun 21, 2016 @ 15:06

    Like the mocking discussion!

    • Petri Jun 23, 2016 @ 23:02

      That is indeed pretty interesting. My favorite did not "win" though :)

Leave a Reply