prisma-client-py icon indicating copy to clipboard operation
prisma-client-py copied to clipboard

Make use of property based testing

Open RobertCraigie opened this issue 3 years ago • 2 comments

Problem

Due to auto-generated nature of the client and the heavily nested query arguments, there are many possible combinations of arguments and methods that we do not have tests for.

Suggested solution

We should be able to make use of hypothesis and their from_type strategy builder to greatly increase the coverage of our generated types.

RobertCraigie avatar Nov 17 '21 14:11 RobertCraigie

This would've prevented #209

RobertCraigie avatar Jan 06 '22 16:01 RobertCraigie

This is a high priority for me as it would've prevented bugs and will increase our confidence with the generated types.

RobertCraigie avatar Feb 02 '22 21:02 RobertCraigie