pbr uses distribution name for source for coverage; doesn't allow customizing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBR |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I was working on jenkins-job-builder and tried to measure coverage by putting this in tox.ini:
```
[testenv:cover]
python setup.py testr --coverage
```
This fails to measure coverage as coverage.py complains with:
```
Coverage.py warning: Module jenkins-job-builder was never imported.
```
Note that the distribution name is "jenkins-
Unfortunately, as clarkb points out, pbr only uses the distribution name and doesn't offer a way to customize this.
http://
clarkb:
11:38 pbr is overriding what you are doing
11:38 they dont run in a different dir
11:39 its just overriding the config
11:40 try PYTHON='coverage run --parallel-mode' testr run --parallel && coverage combine
11:44 maybe submit a pbr bug and link to it in tox.ini
11:44 note the coverage html output dir should match pbrs that way jenkins can copy the html for us
My workaround is to create a symlink from jenkins-job-builder to jenkins-jobs in tox.ini:
https:/ /review. openstack. org/#/c/ 87382/2/ tox.ini
But it would be nice to not have to do such things.