edx/edx-platform — pull request #1219 by wedaly (2013-10-03 20:22:09+00:00)
Title: Allow rake test to run individual tests again

This fixes a recent regression in rake test command. Previously, you could specify an individual test or set of tests to run using `rake test[path/to/test]`.

We recently moved some of the nose arguments out of the rake file and into Django settings. In particular, we added a flag `--tests` to limit the test runner to just LMS or CMS Django apps. Otherwise, nose would find and run tests for all installed system packages.

Unfortunately, adding the `--tests` flag caused nose to ignore specific paths to test files, so it would always run all tests for LMS or CMS.

This PR moves the logic for determining the test suite back into the rake file, so we can control what the test runner will run.

As a side-effect of this change, calling `manage.py lms test` without specifying a Django app or path will cause the test runner to run everything, including tests in system packages. I think this is a reasonable trade-off, but I'm open to discussion.

@brianhw @jzoldak