Handling multiple files of the same name #17

Open
wants to merge 3 commits into
from

Conversation

Projects
None yet
1 participant

If your directory structure is nested, and contains multiple files of the same name, the coverage output gets clobbered.

Thus, if your structure looked like this:

/project/fixtures/Policy.js
/project/lib/Policy.js

previously you would only see coverage for one of these two files. With this change, the coverage for both files will be shown.

Interestingly, the CSS already accounted for this by colouring the path grey and the filename white, but the jscoverage output did not.

This fixes the problem.

@ErisDS ErisDS referenced this pull request in TryGhost/Ghost Nov 3, 2013

Closed

Add Coverage report for Unit tests #1386

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment