those that are using tox for testing system roles and send the test
coverage reports to coveralls.io via coveralls pypi package may struggle
with empty code view in coveralls.io web UI (see network role view for
Since 3.1.0, coveralls has introduced the --basedir option. This option
allows you to strip the base directory from reported paths. To demonstrate
it on network role, if coveralls is run with
$ coveralls --basedir=/home/runner/work/network/network
the reported path will be library/network_connections.py, which is the
existing path on GitHub, so the coveralls.io should be able to display a
view showing the lines covered.
Sometimes, sources can be placed inside src/ (or similar) directory. This
can be seen in several pure Python packages. To handle these kind of
situations, PR with --srcdir option support was opened and merged
This option allow to specify the directory with sources relative to GitHub
project so coveralls.io is able to see them.
On Fedora 34, the tox rpm package has added `-s` to the shebang line. This
means that python will not add ~/.local/lib to the sys.path. This means
that tox cannot find tox-lsr installed in ~/.local/lib.
I recommend that you install `tox` using `pip install --force --user tox`
and make sure you use ~/.local/bin/tox - either use that command directly,
or ensure that ~/.local/bin is in your PATH before /usr/bin