You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In other projects, I've found property-based testing to be a good way of catching bugs I'd never have thought to unit-test for. A quick Google turns up this property-based testing library for Ruby, which while not state-of-the-art looks good enough to get started with. I think this would be a relatively cheap way of increasing our coverage, finding bugs and making our code more robust.
Property-based tests usually use randomness, so we'd need to think about either (a) not running them in CI, or (b) somehow fixing the random seed so our builds don't become non-deterministic.
The text was updated successfully, but these errors were encountered:
I had a thought about this: a good place to start could be... wait for it... controller tests! Throw random input data at our routes, and assert that we never see a 5xx error. This should avoid most of the brittleness problems of hand-crafted controller tests.
In other projects, I've found property-based testing to be a good way of catching bugs I'd never have thought to unit-test for. A quick Google turns up this property-based testing library for Ruby, which while not state-of-the-art looks good enough to get started with. I think this would be a relatively cheap way of increasing our coverage, finding bugs and making our code more robust.
Property-based tests usually use randomness, so we'd need to think about either (a) not running them in CI, or (b) somehow fixing the random seed so our builds don't become non-deterministic.
The text was updated successfully, but these errors were encountered: