-
Notifications
You must be signed in to change notification settings - Fork 0
Other libraries
Nox is a command-line tool that automates testing in multiple Python environments, similar to tox with the difference that Nox's configuration file is written in Python as well.
Nox works with the notion of sessions, which can be used to perform several actions such as install and run inside of a virtual environment, so you don't have to worry about dependencies or commands. Nox as well comes in handy when having to perform tests across different python versions since you can specify which version you want when declaring each session.
Hypothesis is a Python library for creating unit tests. It works by tweaking the way in which tests are usually written. Even when working with normal "automated" testing, still every scenario that is tested was written by hand. This is because usually tests work by setting up some data, performing a series of operation over said data and asserting something about the obtained results.
Hypothesis however works differently. Instead of you having to set up the data, the test will run over a set of data matching a series of specifications. This is particularlly powerful for testing edge cases that otherwise you would not have even imagined that could occur.