-
-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combining coverage of behave and pytest #704
Comments
You need to run I think it could be a good idea to use the |
Hi Ned, thanks for replying :-) Indeed, I'm aware that running I'd really like to understand why Thanks! |
Actually, maybe we can rephrase this in another manner: why is |
I don't know why the behavior is different on Windows and Mac. For your tox problem, use parallel=true so the files are named differently, then you don't need to use different tox environments. |
Oh neat, I really like that workaround better! |
Since I have a simple workaround, I'll close this issue. Thanks for the help! |
Hi there!
I've recently started using behave and I hit an issue while combining the code coverage from
behave
andpytest
in the same project.I initially tried the simplest possible recipe:
This seems to work fine on OSX, but I'm running into issues on Windows. In short, it doesn't seem to recognize that
src/mylib
and.tox\py35\lib\site-packages\mylib
are the same path.I wrote a complete recipe to reproduce the issue, see AndreLouisCaron/coverage-behave-pytest.
I can temporarily work around this issue using seperate test environments for
pytest
andbehave
runs and then combining the coverage (see AndreLouisCaron/coverage-behave-pytest#2). However, this recipe is quite verbose and makestox.ini
really painful when trying to cover multiple Python versions.Is this something you've encountered before? Any idea what's wrong?
Thanks!
P.S.: I'm willing to put some time into a fix if you can provide some basic guidance into what's causing the issue :-)
The text was updated successfully, but these errors were encountered: