-
Notifications
You must be signed in to change notification settings - Fork 665
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
Clean up testing config files. #431
Conversation
Codecov Report
@@ Coverage Diff @@
## master #431 +/- ##
========================================
- Coverage 77.02% 77% -0.02%
========================================
Files 22 20 -2
Lines 2472 1879 -593
========================================
- Hits 1904 1447 -457
+ Misses 568 432 -136
Continue to review full report at Codecov.
|
Looks like the code coverage isn't quite working, yet. |
d0fc939
to
d06ccd4
Compare
This is a nice clean up! I think something goes wrong because the |
@meeuw Thanks! Removing pytest-cov still has the same code coverage problem (see latest test). It looks like the coverage gap is in code that behave would have executed. I wonder if the |
I've pinpointed the problem to After running behave you should see a lot of |
Switching it to What I mean is, behave runs fine from both directories, but coverage is logged only when behave is called from the |
That is caused by mycli/test/features/steps/wrappers.py Line 41 in 1136a1f
|
Yes! thanks for pointing that out. Now that I looked, I had tons of |
👍 do you want pytest-cov back? Maybe it works if we first run the behave tests and then pytest-cov? |
This reverts commit adf6b93.
@meeuw Sure, I added it back. I think this is ready to be merged, what do you think? |
👍 very nice |
Description
This moves the configuration from
.coveragerc
,pytest.ini
, andconftest.py
into the existingsetup.cfg
so we don't have our configuration scattered across so many files.conftest.py
is useful when you need to ignore files during testing based on dynamic criteria (like Python version or operating system) -- which we don't need to do (as of right now).Checklist
I've added this contribution to thenot neededchangelog.md
.AUTHORS
file (or it's already there).