]> khamidou — GitHub mirrors - arcanist.git/commit
Fix unit test coverage for `NoseTestEngine`.
authorJoshua Spence <josh@joshuaspence.com>
Fri, 7 Mar 2014 18:16:27 +0000 (10:16 -0800)
committerepriestley <git@epriestley.com>
Fri, 7 Mar 2014 18:17:04 +0000 (10:17 -0800)
commitcf52d88f8b5cd82412759696df2c97dc73cf07cd
tree6399f8d183c63da8aa6cfc8b0b8a48653514caac
parentc6b1f3f070f6bbfe90619041607bba03adbef8e1
Fix unit test coverage for `NoseTestEngine`.

Summary:
I noticed that code coverage wasn't showing in Differential for
some repositories that we are using with Phabricator.

`arc unit` would should unit test coverage, but the paths were messy
(for example, `.//foo/bar.py` instead of `foo/bar.py`). As a result,
the code coverage info wasn't recognised as being for the correct
module.

I'm not sure why this logic is the way that it is... perhaps this is to
do with an older version of `nose` (I am using v1.3.0).

Test Plan:
I created a diff for an internal repository that we have, and
observed that code coverage was displayed in Differential.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran, seporaitis, avive, dctrwatson, zeeg
Differential Revision: https://secure.phabricator.com/D8433
src/unit/engine/NoseTestEngine.php