Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

coverage tests (but broken on middleware.py)

  • Loading branch information...
commit 6cc9bb34e1d00fdfd3d9a606b74e281320a5a56f 1 parent 3ae0cf1
@peterbe authored
Showing with 15 additions and 5 deletions.
  1. +1 −0  .gitignore
  2. +3 −3 LICENSE
  3. +2 −0  MANIFEST.in
  4. +9 −2 fabfile.py
View
1  .gitignore
@@ -3,3 +3,4 @@ build/
fancy_cache.egg-info/
dist/
django_fancy_cache.egg-info/
+cover/
View
6 LICENSE
@@ -11,9 +11,9 @@ are permitted provided that the following conditions are met:
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- 3. Neither the name of mincss nor the names of its contributors may be used
- to endorse or promote products derived from this software without
- specific prior written permission.
+ 3. Neither the name of django-fancy-cache nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
View
2  MANIFEST.in
@@ -1,2 +1,4 @@
include LICENSE
include README.md
+recursive-include fancy_cache/templates/fancy-cache *.html
+recursive-include fancy_tests/tests/templates *.html
View
11 fabfile.py
@@ -12,7 +12,7 @@
os.environ['PYTHONPATH'] = ROOT
-def test():
+def _test(extra_args):
"""Run test suite."""
os.environ['DJANGO_SETTINGS_MODULE'] = 'fancy_tests.tests.settings'
os.environ['REUSE_DB'] = '0'
@@ -21,4 +21,11 @@ def test():
local('django-admin.py syncdb --noinput')
local('django-admin.py flush --noinput')
- local('django-admin.py test -s')
+ local('django-admin.py test %s' % extra_args)
+
+def test():
+ _test('-s')
+
+def coverage():
+ _test('-s --with-coverage --cover-erase --cover-html '
+ '--cover-package=fancy_cache')
Please sign in to comment.
Something went wrong with that request. Please try again.