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.
- Difference Between Stub, Mock, and Spy in the Spock Framework is a practical blog post that explains how you can use stubs, mocks, and spies with Spock Framework. Also, this post describes the differences of these test doubles, and this helps you to use the right tool for the job.
- Handling and Verifying Exceptions in JUnit 5 is a good blog post that helps you to write assertions for the exceptions thrown by the system under test.
- How Can Hierarchical Test Structure Absolutely Make a Mess? is an excellent blog post that explains why writing hierarchical (aka nested) tests isn't always a good idea.
- Testing your contracts (4/5) describes how you can write the provider side code which allows you to run your contract tests when you are using Pact framework.
The Really Valuable Stuff
- Does Behavior Driven Development Make Sense for Your Team? is an excellent blog post that identifies the one thing you must do if want to do BDD, helps you to decide if you should transform your specifications into automated tests, and explains that it's OK to not do TDD if it makes no sense to you.
- How to Decide What To Automate is a thought-provoking blog post that introduces 12 "rules" which help you to decide what kind of automated tests you should write.