¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Tests ¡°scoped¡± to implementation


 

¿ªÔÆÌåÓý

Yes ... this is a case where removing duplication in tests would appeal to me more than it usually does.

R

On Jan 16, 2020, at 12:56 PM, Nat Pryce <nat.pryce@...> wrote:

This is a situation where I¡¯d consider refactoring the example based tests to property-based tests.?

This would make the intent of the tests more explicit, because the reader does not need to infer the properties from triangulating example-based tests.?

It would provide more extensive coverage, thereby supporting a future refactoring that might make the coverage of the original examples insufficient.?

And it would uncover any ¡°unknown unknowns¡± that didn¡¯t occur to the developer(s) while they were coming up with examples.


Ron Jeffries
I don't necessarily agree with everything I say. -- Marshall McLuhan

Join [email protected] to automatically receive all group messages.