[Numpy-discussion] Using hypothesis in testing

Tyler Reddy tyler.je.reddy at gmail.com
Wed Sep 11 15:43:54 EDT 2019


I think the pros outweigh the cons -- I'll comment briefly on the PR.

On Mon, 9 Sep 2019 at 02:41, Matti Picus <matti.picus at gmail.com> wrote:

> We have discussed using the hypothesis package to generate test cases at a
> few meetings informally. At the EuroSciPy sprint, kitchoi took up the
> challenge and issued a pull request
> https://github.com/numpy/numpy/pull/14440 that actually goes ahead and
> does it. While not finding any new failures, the round-trip testing of s =
> np.array2string(np.array(s)) shows what hypothesis can do. The new test
> runs for about 1/2 a second. In my mind the next step would be to use this
> style of testing to expose problems in the np.chararray routines.
>
>
> What do you think? Is the cost of adding a new dependency worth the more
> thorough testing?
>
> Matti
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20190911/b2b44a94/attachment.html>


More information about the NumPy-Discussion mailing list