sapling/eden/fs
Michael Bolin a3003bf596 Introduce integration tests for the Mercurial extension.
Summary:
This introduces an `HgExtensionTestBase` class that can be subclassed
to create tests for Mercurial integration with Eden. It also introduces
`status_test.py`, which includes some basic integration tests for `hg status`
in Eden. Although our existing `.cpp` tests give us a lot of coverage, they
do not verify the logic in the Python code for our Mercurial extension,
so this will help me sleep better at night.

Note that `HgExtensionTestBase` is a subclass of `testcase.EdenHgTest`
rather than using the `testcase.eden_repo_test` decorator because these
tests will only be used in the Mercurial case for now, so there is no point in
trying to run them when creating the mount from a Git repo, as well.

Further note that this also required a small change to `eden/fs/integration/lib/testcase.py`
because the Eden directory was not being created at `$HOME/local/.eden`, which
is something that the Mercurial extension relies on.

Reviewed By: simpkins

Differential Revision: D4337660

fbshipit-source-id: ea825134420ae6eb794d37b6c75da19a6aadaae5
2016-12-21 21:58:16 -08:00
..
cli Normalize build targets to always start with //. 2016-12-21 16:28:02 -08:00
config Normalize build targets to always start with //. 2016-12-21 16:28:02 -08:00
inodes Normalize build targets to always start with //. 2016-12-21 16:28:02 -08:00
integration Introduce integration tests for the Mercurial extension. 2016-12-21 21:58:16 -08:00
journal Normalize build targets to always start with //. 2016-12-21 16:28:02 -08:00
model Normalize build targets to always start with //. 2016-12-21 16:28:02 -08:00
rocksdb Normalize build targets to always start with //. 2016-12-21 16:28:02 -08:00
service Normalize build targets to always start with //. 2016-12-21 16:28:02 -08:00
store Normalize build targets to always start with //. 2016-12-21 16:28:02 -08:00
testharness implement a FakeBackingStore class 2016-12-20 16:24:17 -08:00