Django command for quickly re-running tests when ever a file changes.
Project description
.. image:: https://raw.githubusercontent.com/doctormo/django-autotest/master/icon.png
:class: floating-box
:alt: Django AutoTest
Description
===========
Provides the 'autotest' command which enhances django's built in test feature
with the auto reload feature used in django's runserver command.
Less than 150 lines of python total in this entire library!
Installation
============
Install via pip or your python egg layer of choice:
pip install django-autotest-command
Then add to your django settings.py
INSTALLED_APPS = (
...
'autotest',
)
No other apps are required except for django core.
Usage
=====
Run like a usual django test:
./manage.py autotest [app_name[.tests.TestCaseName[.test_name]]]
This testing tool will launch the test suite, setup the database and then run
the test suite as usual. When finished it will wait for a file to change
in your project before re-running the tests.
When re-running it will by default only test the previous failures on the next
run through. If all tests passed, then it will run all tests.
After failures are detected, they are all listed by number. You can select one
or more tests to target by typing the numbers seperated by commas and hitting
enter. Targeting allows you to focus on one bug at a time.
When finished with your test targeting press enter at the prompt to reset.
Video
=====
See this test command in action here: http://youtube.com/dl3847389
Development
===========
Please come help this project by using the code, writing tests and leting the
project authors know you appreciate their code:
http://github.com/doctormo/django-autotest
:class: floating-box
:alt: Django AutoTest
Description
===========
Provides the 'autotest' command which enhances django's built in test feature
with the auto reload feature used in django's runserver command.
Less than 150 lines of python total in this entire library!
Installation
============
Install via pip or your python egg layer of choice:
pip install django-autotest-command
Then add to your django settings.py
INSTALLED_APPS = (
...
'autotest',
)
No other apps are required except for django core.
Usage
=====
Run like a usual django test:
./manage.py autotest [app_name[.tests.TestCaseName[.test_name]]]
This testing tool will launch the test suite, setup the database and then run
the test suite as usual. When finished it will wait for a file to change
in your project before re-running the tests.
When re-running it will by default only test the previous failures on the next
run through. If all tests passed, then it will run all tests.
After failures are detected, they are all listed by number. You can select one
or more tests to target by typing the numbers seperated by commas and hitting
enter. Targeting allows you to focus on one bug at a time.
When finished with your test targeting press enter at the prompt to reset.
Video
=====
See this test command in action here: http://youtube.com/dl3847389
Development
===========
Please come help this project by using the code, writing tests and leting the
project authors know you appreciate their code:
http://github.com/doctormo/django-autotest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-autotest-command-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6945761a7cac17bd268086a02bd986c830105e1520102a7df55be5e6e2b6238 |
|
MD5 | 304c40389b2a3822eb93e5b5e3cc6dd1 |
|
BLAKE2b-256 | bd94bea5b91669c7099191260625346deb5128c059896ea2fec5b6d8f0912e5e |