#!/usr/bin/env python import sys import nose args = sys.argv if '-a' not in args: # without -m does not find tests # however with 'T' overrides -a and runs all tests! # args += ['-m', '.*[tT]est.*', '-a', '!disable' ] args += ['-m', '.*test.*', '-a', '!disable' ] nose.run(argv=args)