Skip to content

Commit

Permalink
fix(paths): ensure windows paths are normalized to posix
Browse files Browse the repository at this point in the history
Fixes #118, #153, and #159
  • Loading branch information
TheKevJames committed Aug 31, 2018
1 parent dc7d94e commit 661e0f5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion coveralls/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .reporter import CoverallReporter


log = logging.getLogger(__name__)
log = logging.getLogger('coveralls.api')


class Coveralls(object):
Expand Down
2 changes: 1 addition & 1 deletion coveralls/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from .version import __version__


log = logging.getLogger(__name__)
log = logging.getLogger('coveralls')


def main(argv=None):
Expand Down
2 changes: 1 addition & 1 deletion coveralls/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from .exception import CoverallsException


log = logging.getLogger(__name__)
log = logging.getLogger('coveralls.git')


def run_command(*args):
Expand Down
7 changes: 5 additions & 2 deletions coveralls/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .exception import CoverallsException


log = logging.getLogger(__name__)
log = logging.getLogger('coveralls.reporter')


class CoverallReporter(Reporter):
Expand Down Expand Up @@ -144,8 +144,11 @@ def parse_file(self, cu, analysis):
coverage_lines = [self.get_hits(i, analysis)
for i in range(1, len(source_lines) + 1)]

# ensure results are properly merged between platforms
posix_filename = filename.replace(os.path.sep, '/')

results = {
'name': filename,
'name': posix_filename,
'source': source,
'coverage': coverage_lines,
}
Expand Down

0 comments on commit 661e0f5

Please sign in to comment.