Skip to content

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

Notifications You must be signed in to change notification settings

NicolasMICAUX/autotestreg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages