What’s a Property?

Learn about property-based testing and how to leverage it.

You can make an argument against testing every last bit of code you write. Tests are useful, but they come at a cost. Tests are code that needs to be maintained, aligned with the rest of the codebase, and refactored. The more tests we run, the more time it takes for them to run and for us to make sure our code behaves as expected. Moreover, there’s no guarantee that our code is bulletproof just because we ran tons of tests on it.

A problem with tests and inputs

Manually choosing input for our tests can be challenging. Here are some of the main arguments against it.

Get hands-on with 1200+ tech skills courses.