Homec4science

Provide isolated, read/write storage fixtures for unit tests

Authored by epriestley <git@epriestley.com> on May 2 2012, 21:42.

Description

Provide isolated, read/write storage fixtures for unit tests

Summary:

  • Unit tests can request storage fixtures.
  • We build one fixture across all tests in the process, which can quickstart (takes roughly 1s to build, 200ms to destroy for me). This is a one-time cost for running an arbitrary number of fixture-based tests.
  • We isolate all the connections inside transactions for each test, so individual tests don't affect one another.

Test Plan: Ran unit tests, which cover the important properties of fixtures.

Reviewers: btrahan, vrana, jungejason, edward

Reviewed By: btrahan

CC: aran, davidreuss

Maniphest Tasks: T140

Differential Revision: https://secure.phabricator.com/D2345

Details

Committed
epriestley <git@epriestley.com>May 2 2012, 21:42
Pushed
aubortJan 31 2017, 17:16
Parents
rPH56529f88e015: Show verb of closed diff based on backing vcs, not local vcs
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH5ab14d08793f: Provide isolated, read/write storage fixtures for unit tests (authored by epriestley <git@epriestley.com>).May 2 2012, 21:42