#8065 Run tests with real mongo?

unreleased
open
nobody
None
General
nobody
2016-03-10
2016-03-10
No

We should consider running our test suite with a real mongo database, it would allow better testing of mongo details, for example aggregate() calls which mim (mongo in memory) cannot emulate at this point.

Several things would have to change:

  • specify real databases in test.ini
  • update Allura/allura/websetup/bootstrap.py's wipe_database method to include those database names
  • make the database names semi-random and distinct so that running the tests in a multiprocess configuration don't use the same db and clobber each others' changes. (mim is already isolated per-process since its in memory)
  • update jenkins to have a real mongo available for tests

"mim" is also a bit faster. In my single-process test run it was 70% the time of real mongo. So we'd be sacrificing some speed.

Discussion


Log in to post a comment.