paint-brush
Everything Wrong With The State of Unit Testing Todayby@miguel-bernard
144 reads

Everything Wrong With The State of Unit Testing Today

by Miguel Bernard3mApril 16th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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

@miguel-bernard

Miguel is passionate about teaching, developers' communities and everything related to .Net.

Learn More
LEARN MORE ABOUT @MIGUEL-BERNARD'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Miguel Bernard HackerNoon profile picture
Miguel Bernard@miguel-bernard
Miguel is passionate about teaching, developers' communities and everything related to .Net.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Arturmarques