Michał Jaworski avatar Michał Jaworski committed 46941c5

now it can be tested easily using tox & jenkins

Comments (0)

Files changed (4)

 dist/*
 django_oauth.egg-info/*
 setuptools_hg-0.1-py2.5.egg
+junitxml
Add a comment to this file

oauth_provider/runtests/runtests.py

File contents unchanged.

oauth_provider/runtests/settings.py

     # custom user model for tests issue #22
     INSTALLED_APPS += ('test_app',)
     AUTH_USER_MODEL = 'test_app.TestUser'
+
+try:
+    import xmlrunner
+except ImportError:
+    pass
+else:
+    TEST_RUNNER = 'xmlrunner.extra.djangotestrunner.XMLTestRunner'
+    TEST_OUTPUT_VERBOSE = True
+    TEST_OUTPUT_DESCRIPTIONS = True
+    TEST_OUTPUT_DIR = 'junitxml'
 downloadcache = {toxworkdir}/cache/
 envlist = py2.7-django1.5,py2.6-django1.5,py2.7-django1.4,py2.6-django1.4,py2.7-django1.3,py2.6-django1.3
 
+[base]
+deps = unittest-xml-reporting
+       oauth2==1.5.170
+
 [testenv]
 commands={envpython} oauth_provider/runtests/runtests.py
 
 [testenv:py2.7-django1.5]
 basepython = python2.7
 deps = django==1.5
-       oauth2==1.5.170
+       {[base]deps}
 
 [testenv:py2.6-django1.5]
 basepython = python2.6
 deps = django==1.5
-       oauth2==1.5.170
+       {[base]deps}
 
 [testenv:py2.7-django1.4]
 basepython = python2.7
 deps = django==1.4.3
-       oauth2==1.5.170
+       {[base]deps}
 
 [testenv:py2.6-django1.4]
 basepython = python2.6
 deps = django==1.4.3
-       oauth2==1.5.170
+       {[base]deps}
 
 [testenv:py2.7-django1.3]
 basepython = python2.7
 deps = django==1.3.5
-       oauth2==1.5.170
+       {[base]deps}
 
 [testenv:py2.6-django1.3]
 basepython = python2.6
 deps = django==1.3.5
-       oauth2==1.5.170
+       {[base]deps}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.