Remap Source Code Paths
Miserlou opened this issue · comments
I run my tests inside of a Docker container, and I extract the coverage file using docker volumes.
This doesn't seem to work with python-coveralls, however, because the directory paths different.
Ex:
coveralls --data_file workers/test_volume/.transcriptome.coverage
Traceback (most recent call last):
File "/opt/circleci/.pyenv/versions/2.7.12/bin/coveralls", line 11, in <module>
sys.exit(wear())
File "/opt/circleci/.pyenv/versions/2.7.12/lib/python2.7/site-packages/coveralls/__init__.py", line 95, in wear
source_files=coverage.coveralls(args.base_dir, ignore_errors=args.ignore_errors, merge_file=args.merge_file),
File "/opt/circleci/.pyenv/versions/2.7.12/lib/python2.7/site-packages/coveralls/control.py", line 9, in coveralls
return reporter.report(base_dir, ignore_errors=ignore_errors, merge_file=merge_file)
File "/opt/circleci/.pyenv/versions/2.7.12/lib/python2.7/site-packages/coveralls/report.py", line 15, in report
with open(fr.filename) as fp:
IOError: [Errno 2] No such file or directory: u'/home/user/data_refinery_workers/__init__.py'
Exited with code 1
Is there anyway way to remap a directory so that the recorded/home/user/
is actually looked for in workers/
?