A streamlined fork of django-jenkins designed to work with the default test command and the discover runner
Find a file
coagulant 8fbc08d119 Add flake8 support
Flake8 is PEP8 + PyFlakes + Cyclomatic complexity check
2013-11-19 22:59:09 +04:00
discover_jenkins Add flake8 support 2013-11-19 22:59:09 +04:00
docs Add flake8 support 2013-11-19 22:59:09 +04:00
tests Add flake8 support 2013-11-19 22:59:09 +04:00
.gitignore Add the docs _build directory to gitignore 2013-08-08 00:38:46 -05:00
AUTHORS.md Bump version number and add authors 2013-10-03 09:40:09 -05:00
LICENSE Boilerplate 2013-07-30 20:09:34 -05:00
MANIFEST.in Adjust the packaging details 2013-08-08 01:53:36 -05:00
README.md Fix the crate.io link 2013-10-04 13:24:54 -05:00
setup.cfg Add a setup.cfg 2013-08-08 01:53:47 -05:00
setup.py Correct the package name 2013-08-08 02:00:52 -05:00

django-discover-jenkins

Downloads Build Status PyPi Downloads

A streamlined fork of django-jenkins designed to work with the default test command and the discover runner.

Read the Docs

Why?

The overall goal is to run tests on Jenkins the same way you do on your local machine. This project is designed to take advantage of django-discover-runner, which is the default test runner in Django 1.6. Instead of using a setting to list which apps should be tested, or accepting Django-specific test labels, it uses the official test discovery feature of the new unittest2.

Also, the original django-jenkins project doesn't take advantage of improvements to testing introduced in Django 1.4. Special management commands are no longer needed, as test runners themselves can add options that are handled by the built-in test command.

What's Changed?

  • It doesn't override the suite construction. Use the included test runner based on the django-discover-runner, or use the included mixin to add Jenkins functionality to your own runner. Your test suite will be built the same way on Jenkins as it is on your local machine.
  • No management commands are provided. Since Django 1.4, the built in 'test' command has allowed the test runner to define additional options that the management command will accept.
  • It doesn't use signals. Instead of using the event/callback style of signals and using inspect.getmembers to connect everything, the test runner simply checks for key methods on each task the same way Django's request handler checks for methods on middleware.
  • Not everything works yet. Only a subset of the django-jenkins tasks have been ported at this point. I'd love to accept your pull requests to add more of them.

Who?

First and foremost, the authors of django-jenkins are responsible for the basis of most of this code. I (Brandon Konkle) just took it apart and put it back together again in a different way, then fixed or reworked some things. Thank you to the contributors of that project!

For the full list of original authors and for the contributors to this project, see the AUTHORS.md file.