Commits

Mark Lavin committed 9c77402

Make it easier to run a single test class or case with runtests helper.

  • Participants
  • Parent commits 7e134df

Comments (0)

Files changed (1)

 def runtests():
     TestRunner = get_runner(settings)
     test_runner = TestRunner(verbosity=1, interactive=True, failfast=False)
-    failures = test_runner.run_tests(['selectable', ])
+    args = sys.argv[1:] or ['selectable', ]
+    failures = test_runner.run_tests(args)
     sys.exit(failures)
 
 
 if __name__ == '__main__':
-    runtests(*sys.argv[1:])
+    runtests()