Learn to write tests which are easy to read and write: get started with Spock Framework.

Java Testing Weekly 46 / 2017

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

  • A New Mocking Tool for Kotlin introduces a tool called MockK that allows you to create stubs, mocks, and spies with Kotlin.
  • Writing tests like a novelist explains how AssertJ helps you to write assertions which are easy to read and describes why AssertJ is a better choice than JUnit assertions or Hamcrest.

My "Test With Spring" course helps you to write unit, integration, and end-to-end tests for Spring and Spring Boot Web Apps:

CHECK IT OUT >>

The Really Valuable Stuff

  • Liar Liar is an excellent blog post which explains that our society is build on trust and describes why trust is important in software development as well. This is an important topic because quite often developers neglect activities that build trust (such as testing or refactoring) because they are running out of time or money. This is an extremely short-sighted business strategy and in extreme case you can get into really serious trouble. Remember that you can go to jail for the code your boss told you to write.
  • On Why the “Testers Should Know How to Code” Mantra could Hurt Us All is a great blog post that identifies four reasons why we shouldn’t expect that all testers must be able to write code. This post also shares links to other interesting blog posts that discuss about this matter.

It’s Time to Update Your Dependencies

About the Author

Petri Kainulainen is passionate about software development and continuous improvement. He is specialized in software development with the Spring Framework and is the author of Spring Data book.

About Petri Kainulainen →

0 comments… add one

Leave a Comment