time-machine VS examc

Compare time-machine vs examc and see what are their differences.

time-machine

Travel through time in your tests. (by adamchainz)

examc

proof of concept C unit test library using linker sections (by cozzyd)
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
time-machine examc
2 2
606 0
- -
8.6 0.0
4 days ago about 2 years ago
Python C
MIT License MIT License
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.

time-machine

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

examc

Posts with mentions or reviews of examc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-10.
  • static_assert is all you need (no leaks, no UB)
    5 projects | news.ycombinator.com | 10 Apr 2023
    There are other ways to do this. I made a proof of concept of using linker sections to allow you to sprinkle tests within the implementation inline once... https://github.com/cozzyd/examc (this is obviously not production-ready, just serves as a proof of concept).

    Basically the idea is that the test code gets written to a different linker section that your test runner can iterate through, when tests are enabled.

  • Running C unit tests with pytest
    6 projects | news.ycombinator.com | 12 Feb 2022
    Indeed, I just made a POC with compiler sections: https://github.com/cozzyd/examc

    This implementation only works with gcc though probably (it uses the automatic __start_SECTION and __stop_SECTION that gcc generates but clang doesn't seem to... there are likely hacks to make this work anyway though).

What are some alternatives?

When comparing time-machine and examc you can also consider the following projects:

freezegun - Let your Python tests travel through time

TDD - See while you code

doublex

c_unit_tests - C unit tests with a small header-only library.

mock - The Python mock library

templight - Templight is a Clang-based tool to profile the time and memory consumption of template instantiations and to perform interactive debugging sessions to gain introspection into the template instantiation process.

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

docker-images - Docker images for ci testing

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

headlock - An adapter for making C code testable from Python (see https://headlock.readthedocs.io/en/latest)

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

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