HackerNoon Mobile

Better reading experience on the app
Everything Wrong With The State of Unit Testing Todayby@miguel-bernard

Everything Wrong With The State of Unit Testing Today

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Miguel is passionate about teaching, developers' communities and everything related to Net.Net. In this article, we'll go over property-based testing, an alternative approach to unit testing. Property-based tests deal with all the shortcomings of example-based and brittle tests. The best approach is to have the right mix of the two in your test suite. The first thing to do is to represent the relationship between inputs and outputs to express deterministic expected results. With these, it's impossible to write an implementation of the Add method that doesn't behave properly.

Company Mentioned

Mention Thumbnail
featured image - Everything Wrong With The State of Unit Testing Today
Miguel Bernard HackerNoon profile picture

@miguel-bernard

Miguel Bernard


Receive Stories from @miguel-bernard

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!