Comment

Comment by spooky_deep

Property based testing is fantastic.

Why is it not more popular?

My theory is that only code written in functional languages has complex properties you can actually test.

In imperative programs, you might have a few utils that are appropriate for property testing - things like to_title_case(str) - but the bulk of program logic can only be tested imperatively with extensive mocking.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton