Note:

This page is primarily intended for developers of Mercurial.

Hypothesis

Plan to use the Hypothesis framework in Mercurial Tests suite.

1. Inline Python test (for .t) file

This made it to core.

2. Doctest testing

Having a way to use fuzzed input in doctest would be interesting. However, Hypothesis does not currently support doctests

3. Side by side comparison

One way Hypothesis could help greatly, is but generating random usage scenario. Being able to ensure that two variants of Mercurial (eg: repo format, extensions) keep the same Behavior would be very handy

For this would need:

3.1. proposal for simple initial step

Aiming at something very simple first would be ideal to have all the hard work in place and let people add complexity as needed.

3.2. More advanced idea


CategoryDeveloper CategoryNewFeatures