Page MenuHomePhabricator

tests: add some basic tests of phabricator interactions

Authored by durin42 on Sep 15 2018, 1:23 AM.



This uses the vcr library to avoid hitting phabricator on every test
execution. In order to generate new recordings (vcr calls them
cassettes) just remove the appropriate json file, and the test will
regenerate it. It's not my favorite way to test things, but it'll let
us have test coverage on the phabricator extension that'll make it
resilient to refactors in core and let us move it to hgext.

In the future, it'd probably be better to have a docker container we
can spin up for creating the vcr recordings, but for now this is
enough better than nothing I'm going to declare victory.

Coverage reports about 73% of the extension is now covered.

Diff Detail

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durin42 created this revision.Sep 15 2018, 1:23 AM
durin42 updated this revision to Diff 11082.Sep 15 2018, 1:49 AM
This revision was automatically updated to reflect the committed changes.