Permalink
Browse files

added SKIP_TESTS settings

  • Loading branch information...
1 parent faf02c9 commit 355ff3b3ebeab4566da9c978f994aa189947c791 @zbyte64 zbyte64 committed Feb 23, 2010
Showing with 13 additions and 2 deletions.
  1. +2 −1 .gitignore
  2. +11 −1 src/test_extensions/management/commands/test.py
View
@@ -1,5 +1,6 @@
.DS_Store
+*~
*.pyc
build/*
dist/*
-src/*.egg-info/*
+src/*.egg-info/*
@@ -79,7 +79,17 @@ def handle(self, *test_labels, **options):
#print test_runner
# print test_runner.__file__
+ if hasattr(settings, 'SKIP_TESTS'):
+ if not test_labels:
+ test_labels = list()
+ for app in settings.INSTALLED_APPS:
+ test_labels.append(app.split('.')[-1])
+ for app in settings.SKIP_TESTS:
+ try:
+ test_labels.remove(app)
+ except ValueError:
+ pass
failures = test_runner(test_labels, verbosity=verbosity,
interactive=interactive) # , skip_apps=skippers)
if failures:
- sys.exit(failures)
+ sys.exit(failures)

0 comments on commit 355ff3b

Please sign in to comment.