Skip to main content
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.

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.

Coverage

Coverage reports can be generated by install the coverage module >=4.0.0 and will pick up on any .coveragerc file in your project. A new report will only run when all items are being tested. Partial coverage reports are not yet supported.

Base Test Classes

autotest.base contains useful base classes which can help you write tests for django. The functionality includes getObj for getting objects of a certain type. assertGet/Post for making requests with status checking and forum error checking. As well as client and user management functions.

Video

See this test command in action here: https://youtu.be/6rL0C2CBwyI

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

Metadata

Release files for django-autotest-command 1.5.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-autotest-command 1.5.5
File Size Uploaded
django-autotest-command-1.5.5.tar.gz 24.5 kB Details

Release files / django-autotest-command-1.5.5.tar.gz

Download URL django-autotest-command-1.5.5.tar.gz
Size 24.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8fddc754b5aa1afbb98d56ff352d7f503105e5b9eadcae732902b8ae3607bbd6
BLAKE2b-256 checksum
How to use checksums
260692b8e889dcfc957282946535bfacd152eafeead88ba99be2b47b85a9c3c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.5.5 This release

1 release file

1.5.3

1 release file

1.5.2

1 release file

1.5.1

1 release file

1.5

1 release file

1.4.1

1 release file

1.4

1 release file

1.3

1 release file

1.1

1 release file

1.0.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page