pytest-randomly VS freezegun

Compare pytest-randomly vs freezegun and see what are their differences.

pytest-randomly

:game_die: Pytest plugin to randomly order tests and control random.seed (by pytest-dev)

freezegun

Let your Python tests travel through time (by spulec)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
pytest-randomly freezegun
1 9
584 3,972
1.2% -
8.4 7.5
1 day ago 10 days ago
Python Python
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

pytest-randomly

Posts with mentions or reviews of pytest-randomly. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-07-16.
  • Introduction to Flaky Tests by Example
    4 projects | dev.to | 16 Jul 2021
    By “chance” the tests were always run in the right order for years. This situation could have been detected way earlier by using a random execution order for tests. It happens that python has simple modules to do so.

freezegun

Posts with mentions or reviews of freezegun. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-19.

What are some alternatives?

When comparing pytest-randomly and freezegun you can also consider the following projects:

time-machine - Travel through time in your tests.

python-libfaketime - A fast time mocking alternative to freezegun that wraps libfaketime.

Moto - A library that allows you to easily mock out tests based on AWS infrastructure.

VCR.py - Automatically mock your HTTP interactions to simplify and speed up testing

httpretty - Intercept HTTP requests at the Python socket level. Fakes the whole socket module

mock - The Python mock library

doublex

responses - A utility for mocking out the Python Requests library.

Mock Generator - A tool to auto generate the basic mocks and asserts for faster unit testing

cornell - Cornell - record & replay mock server

pymox - Pymox - Python mocking on steroids

betamax - A VCR imitation designed only for python-requests.