Refining the Tests

Understand how refining the tests we have written for the application will yield better results.

Order of failures:
Property tests are probabilistic. If you are following along, you may find different issues, or the same issues in a different order, than those in this text. This is normal, and rerunning the property a few times may yield different errors each time.

Code

Let’s start off with the code and make fixes to it as we go through the lesson.

Note: To run an updated version of the code, press “Run”, and then call rebar3 proper in the terminal that opens.

Get hands-on with 1200+ tech skills courses.