Skip to content
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

Add test util for checking stand-alone python scripts #1007

Merged
merged 11 commits into from
May 10, 2021

Conversation

innerlee
Copy link
Contributor

This function can be used to check stand-alone scripts, without tweaking sys.path manually. Moreover, it will increase test coverage for codes the script touches.

Signed-off-by: lizz <lizz@sensetime.com>
Signed-off-by: lizz <lizz@sensetime.com>
@innerlee innerlee changed the title Add test util for checking stand-alone scripts Add test util for checking stand-alone python scripts Apr 30, 2021
Signed-off-by: lizz <lizz@sensetime.com>
Signed-off-by: lizz <lizz@sensetime.com>
@codecov
Copy link

codecov bot commented Apr 30, 2021

Codecov Report

Merging #1007 (a1d104b) into master (c4aa414) will decrease coverage by 0.01%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1007      +/-   ##
==========================================
- Coverage   64.60%   64.58%   -0.02%     
==========================================
  Files         152      152              
  Lines        9779     9802      +23     
  Branches     1779     1780       +1     
==========================================
+ Hits         6318     6331      +13     
- Misses       3133     3142       +9     
- Partials      328      329       +1     
Flag Coverage Δ
unittests 64.58% <80.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmcv/utils/__init__.py 88.23% <ø> (ø)
mmcv/utils/testing.py 96.00% <80.00%> (-4.00%) ⬇️
mmcv/ops/corner_pool.py 52.77% <0.00%> (-3.16%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c4aa414...a1d104b. Read the comment docs.

Signed-off-by: lizz <lizz@sensetime.com>
Signed-off-by: lizz <lizz@sensetime.com>
Signed-off-by: lizz <lizz@sensetime.com>
Signed-off-by: lizz <lizz@sensetime.com>
@ZwwWayne ZwwWayne mentioned this pull request May 1, 2021
13 tasks
@ZwwWayne ZwwWayne merged commit f61295d into open-mmlab:master May 10, 2021
@innerlee innerlee deleted the zz/script branch May 11, 2021 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants