Skip to content

Automatically test Python code using icontract-hypothesis in vim

License

Notifications You must be signed in to change notification settings

mristin/icontract-hypothesis-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

icontract-hypothesis-vim

Icontract-hypothesis-vim is a Vim plug-in for icontract-hypothesis, a tool that integrates Hypothesis library for property-based testing with icontract library for design-by-contract in Python.

Animated GIF demonstrating the plug-in

Usage

Move the cursor to the function that you want to test or select a range of functions.

:IcontractHypothesisTest [settings ...]

Automatically infer the test strategy and execute it.

If {settings} are provided, they are passed to Hypothesis. The format of the settings is name=value.

Example:

:IcontractHypothesisTest max_examples=500

:IcontractHypothesisInspect

Infer the test strategy and display it.

No tests are executed.

Example:

:IcontractHypothesisInspect

Installation

Versioning

We follow Semantic Versioning. The version X.Y.Z indicates:

  • X is the major version (backward-incompatible),
  • Y is the minor version (backward-compatible), and
  • Z is the patch version (backward-compatible bug fix).

About

Automatically test Python code using icontract-hypothesis in vim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published