Skip to main content

Automatically test your functions to see if you have changed their behavior by mistake!

Project description

Contributors Stargazers Issues PyPi version Python 3


Logo

AutoTest!Reg

Automatically test your functions to see if you have changed their behavior by mistake!


View Demo · Report Bug

About The Project

Have you ever spent hours reworking someone else's code, trying not to break anything, only to realize at the last moment that something doesn't work anymore, but not knowing at which step you introduced the bug? So frustrating!

AutoTest!Reg allows you to automatically track the code you are working on and not introduce any regression, without writing a single test!

Getting Started

Using AutoTest!Reg requires no effort at all!

Install AutoTest!Reg with pip :

pip install autotestreg

Import AutoTest!Reg into your tests, adding this line:

import autotestreg

To follow a function my_func, this code is all you need:

from autotestreg import autotest_func

def my_func():
    ...

autotest_func(my_func)

To track an entire module mypackage, with all the functions and methods it contains:

from autotestreg import autotest_module
import mypackage

autotest_module(mypackage)

Next

If no regression was introduced when you modified the code, your tests will pass.

Otherwise, AutoTest!Reg will give you the function whose behavior was changed.

(back to top)

Contributing

(Section in english)
I want to add a lot of functionnalities to this project, but I don't have much time to work on it. Contributions are welcome!

Roadmap/todo

Task Importance Difficulty Contributor on it Description
./5 ./5 NOBODY e.g. : ...

Non-Code contribution :

Task Importance Difficulty Contributor on it Description
./5 ./5 NOBODY e.g. : ...

For every todo, just click on the link to find the discussion where I describe how I would do it.
See the open issues for a full list of proposed features (and known issues).

(back to top)

How to contribute

Contributing is an awesome way to learn, inspire, and help others. Any contributions you make are greatly appreciated, even if it's just about styling and best practices.

If you have a suggestion that would make this project better, please fork the repo and create a pull request.
Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/YourAmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Authors

This library was created by Nicolas MICAUX.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autotestreg-0.1.1.tar.gz (5.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page