Closed SeanBryan51 closed 6 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 72.81%. Comparing base (
ac2cb1f
) to head (59910ed
). Report is 8 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Wouldn't the actual src
files clash with the current folders created by runs of benchcab
(this could further be a problem when we run benchcab clean
).
└── src
├── benchcab <- Work on this PR
├── <realisation-0>
└── <realisation-1>
For example , running benchcab clean
would delete benchcab
as well. Also, I believe src
is holding folders for 2 different things here.
@abhaasgoyal I think you might be confusing the benchcab source with bench_example. The src directory you mentioned is only generated when running benchcab and will not contain the benchcab source files.
Oh yeah, my mistake.. Looks good to me! (I ran the integration tests as well)
I've noticed the code coverage reports seem to differ when I have hardly changed the source code or the unit tests. Looking into this now.
@abhaasgoyal I've made some new changes regarding the unit test coverage reports as coverage reports do not seem to be properly generated unless we run pytest against an editable install of benchcab. I've also restricted the coverage to measure only the source files under the src
directory as files like versioneer.py were getting picked up by the coverage report.
Also please hit approve once you are happy with the changes.
Currently we are not testing the installed version of the package in our CI workflow. This is one of the major disadvantages in using a flat layout. This change switches the source code to use a src layout and reproduces the error described in https://github.com/CABLE-LSM/benchcab/issues/267 (see logs).
This pull request should be merged once #272 is merged so that we can verify the CI passes.
Fixes #270