| 1 |
--- |
| 2 |
title: Testimonials |
| 3 |
date: 2015-04-25 22:03 |
| 4 |
--- |
| 5 |
|
| 6 |
<blockquote class="testimonial blockquote-reverse pull" id='alex-stapleton'> |
| 7 |
<p> |
| 8 |
Hypothesis is easy to learn and powerful implementation of property based testing, |
| 9 |
and generally an invaluable tool. At Lyst we've used it in a wide variety of |
| 10 |
situations, from testing APIs to machine learning algorithms and in all |
| 11 |
cases it's given us a great deal more confidence in that code. |
| 12 |
</p> |
| 13 |
<footer>Alex Stapleton, Lead Backend Engineer at <a href="https://www.lyst.com/">Lyst</a></footer></cite> |
| 14 |
</blockquote> |
| 15 |
|
| 16 |
<blockquote class="testimonial blockquote-reverse pull" id='cory-benfield'> |
| 17 |
<p> |
| 18 |
Hypothesis is the single most powerful tool in my toolbox for working with |
| 19 |
algorithmic code, or any software that produces predictable output from a wide |
| 20 |
range of sources. When using it with <a href="http://python-hyper.org/priority/">Priority</a>, Hypothesis consistently found |
| 21 |
errors in my assumptions and extremely subtle bugs that would have taken months |
| 22 |
of real-world use to locate. In some cases, Hypothesis found subtle deviations |
| 23 |
from the correct output of the algorithm that may never have been noticed at |
| 24 |
all. |
| 25 |
</p> |
| 26 |
<p> |
| 27 |
When it comes to validating the correctness of your tools, nothing comes close |
| 28 |
to the thoroughness and power of Hypothesis. |
| 29 |
</p> |
| 30 |
<footer><a href="https://github.com/Lukasa">Cory Benfield</a></footer></cite> |
| 31 |
</blockquote> |
| 32 |
|
| 33 |
<blockquote class="testimonial blockquote-reverse pull" id='kristian-glass'> |
| 34 |
<p>Hypothesis has been brilliant for expanding the coverage of our test cases, |
| 35 |
and also for making them much easier to read and understand, |
| 36 |
so we're sure we're testing the things we want in the way we want.</p> |
| 37 |
<footer><a href="/testimonials/#kristian-glass">Kristian Glass</a>, Director of Technology at <a href="https://www.laterpay.net/">LaterPay</a></footer></cite> |
| 38 |
</blockquote> |
| 39 |
|
| 40 |
<blockquote class="testimonial blockquote-reverse pull" id='sixty-north'> |
| 41 |
<p> |
| 42 |
At Sixty North we use Hypothesis for testing |
| 43 |
<a href="https://github.com/sixty-north/segpy">Segpy</a>, an open source Python library for |
| 44 |
shifting data between Python data structures and SEG Y files which contain |
| 45 |
geophysical data from the seismic reflection surveys used in oil and gas |
| 46 |
exploration.</p> |
| 47 |
|
| 48 |
<p>This is our first experience of property-based testing – as opposed to example-based |
| 49 |
testing. Not only are our tests more powerful, they are also much better |
| 50 |
explanations of what we expect of the production code. In fact, the tests are much |
| 51 |
closer to being specifications. Hypothesis has located real defects in our code |
| 52 |
which went undetected by traditional test cases, simply because Hypothesis is more |
| 53 |
relentlessly devious about test case generation than us mere humans! We found |
| 54 |
Hypothesis particularly beneficial for Segpy because SEG Y is an antiquated format |
| 55 |
that uses legacy text encodings (EBCDIC) and even a legacy floating point format |
| 56 |
we implemented from scratch in Python.</p> |
| 57 |
|
| 58 |
<p> |
| 59 |
Hypothesis is sure to find a place in most of our future Python codebases and many |
| 60 |
existing ones too. |
| 61 |
</p> |
| 62 |
<footer>Rob Smallshire, <a href="http://sixty-north.com/">Sixty North</a></footer></cite> |
| 63 |
</blockquote> |
| 64 |
|
| 65 |
|
| 66 |
<blockquote class="testimonial blockquote-reverse pull" id='seth-morton'> |
| 67 |
<p> |
| 68 |
When I first heard about Hypothesis, I knew I had to include it in my two |
| 69 |
open-source Python libraries, <a href="https://github.com/SethMMorton/natsort">natsort</a> |
| 70 |
and <a href="https://github.com/SethMMorton/fastnumbers">fastnumbers</a>.</p> |
| 71 |
|
| 72 |
<p>Quite frankly, |
| 73 |
I was a little appalled at the number of bugs and "holes" I found in the code. I can |
| 74 |
now say with confidence that my libraries are more robust to "the wild." In |
| 75 |
addition, Hypothesis gave me the confidence to expand these libraries to fully |
| 76 |
support Unicode input, which I never would have had the stomach for without such |
| 77 |
thorough testing capabilities. Thanks! |
| 78 |
</p> |
| 79 |
|
| 80 |
<footer><a href="https://github.com/SethMMorton">Seth Morton</a></footer></cite> |
| 81 |
|
| 82 |
</blockquote> |
| 83 |
|
| 84 |
<blockquote class="testimonial blockquote-reverse pull" id='mulkieran'> |
| 85 |
<p> |
| 86 |
Just found out about this excellent QuickCheck for Python implementation and |
| 87 |
ran up a few tests for my <a href="https://github.com/mulkieran/bytesize">bytesize</a> |
| 88 |
package last night. Refuted a few hypotheses in the process. |
| 89 |
</p> |
| 90 |
|
| 91 |
<p> |
| 92 |
Looking forward to using it with a bunch of other projects as well. |
| 93 |
</p> |
| 94 |
<footer> |
| 95 |
<a href="https://github.com/mulkieran">mulkieran</a> |
| 96 |
</footer> |
| 97 |
</blockquote> |
| 98 |
|
| 99 |
|
| 100 |
<blockquote class="testimonial blockquote-reverse pull" id='adam-johnson'> |
| 101 |
<p> I have written a small library to serialize dicts to MariaDB's dynamic columns binary format, <a href=https://github.com/adamchainz/mariadb-dyncol">mariadb-dyncol</a>. When I first |
| 102 |
developed it, I thought I had tested it really well - there were hundreds of |
| 103 |
test cases, some of them even taken from MariaDB's test suite itself. I was |
| 104 |
ready to release. |
| 105 |
</p> |
| 106 |
|
| 107 |
<p> |
| 108 |
Lucky for me, I tried Hypothesis with David at the PyCon UK sprints. Wow! It |
| 109 |
found bug after bug after bug. Even after a first release, I thought of a way |
| 110 |
to make the tests do more validation, which revealed a further round of bugs! |
| 111 |
Most impressively, Hypothesis found a complicated off-by-one error in a |
| 112 |
condition with 4095 versus 4096 bytes of data - something that I would never |
| 113 |
have found. |
| 114 |
</p> |
| 115 |
<p> |
| 116 |
Long live Hypothesis! (Or at least, property-based testing). |
| 117 |
</p> |
| 118 |
<footer> |
| 119 |
<a href="https://github.com/adamchainz">Adam Johnson</a> |
| 120 |
</footer> |
| 121 |
</blockquote> |
| 122 |
|
| 123 |
<blockquote class="testimonial blockquote-reverse pull" id='adam-johnson'> |
| 124 |
<p> |
| 125 |
Adopting Hypothesis improved <a href="https://github.com/jab/bidict">bidict</a>'s |
| 126 |
test coverage and significantly increased our ability to make changes to |
| 127 |
the code with confidence that correct behavior would be preserved. |
| 128 |
Thank you, David, for the great testing tool. |
| 129 |
</p> |
| 130 |
<footer> |
| 131 |
<a href="https://github.com/jab">Josh Bronson</a> |
| 132 |
</footer> |
| 133 |
</blockquote> |
| 134 |
|
| 135 |
|
| 136 |
<blockquote class="testimonial blockquote-reverse pull" id='jon-moore'> |
| 137 |
<p> |
| 138 |
One extremely satisfied user here. Hypothesis is a really solid implementation |
| 139 |
of property-based testing, adapted well to Python, and with good features |
| 140 |
such as failure-case shrinkers. I first used it on a project where we needed |
| 141 |
to verify that a vendor's Python and non-Python implementations of an algorithm |
| 142 |
matched, and it found about a dozen cases that previous example-based testing |
| 143 |
and code inspections had not. Since then I've been evangelizing for it at our firm. |
| 144 |
</p> |
| 145 |
<footer> |
| 146 |
<a href="https://github.com/jonmoore">Jon Moore</a> |
| 147 |
</footer> |
| 148 |
</blockquote> |
| 149 |
|
| 150 |
<h3>Your name goes here</h3> |
| 151 |
<p> |
| 152 |
Want to add to the list by telling us about your Hypothesis experience? Drop us |
| 153 |
an email at <a href="mailto:[email protected]">[email protected]</a> |
| 154 |
and we'll add it to the list! |
| 155 |
</p> |
| 156 |
<p> |
| 157 |
|
| 158 |
</p> |