edx/edx-platform — pull request #220 by JonahStanley (2013-06-20 13:12:13+00:00)
Title: Jonahstanley/make units parallel

Suggested reviewers: @jzoldak @cdodge
With this pull request, unit tests should be able to run in parallel. Please note that they cannot be run in parallel on a local machine. This change was accomplished by doing the following:

1. All contentstore tests will pull from their unique database name

2. All contentstore tests will drop their database and clear the singleton during tear down resulting in no lingering database at the end of the unit tests.

3. This was already implemented but... for only the Jenkins server in test.sh, Jenkins is given a list of ports to try for the live server tests. Therefore, if a port is being used by a different test run, it will try the other ports until it can connect safely.