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

[tests]:add coverage for config/main/utilities_common module #1039

Merged
merged 1 commit into from
Aug 9, 2020

Conversation

lguohan
Copy link
Contributor

@lguohan lguohan commented Aug 9, 2020

generate xml, html and term report

Signed-off-by: Guohan Lu [email protected]

- What I did
generate xml, html and term report

- How I did it
modify pytest.ini

- How to verify it
check the report. below is the term report. xml/html has lots of more details.

---------- coverage: platform linux2, python 2.7.16-final-0 ----------
Name                              Stmts   Miss  Cover
-----------------------------------------------------
config/__init__.py                    0      0   100%
config/aaa.py                       132     82    38%
config/config_mgmt.py               345    116    66%
config/feature.py                    25      5    80%
config/main.py                     2280   1683    26%
config/mlnx.py                      134     93    31%
config/nat.py                       680    570    16%
show/__init__.py                      0      0   100%
show/bgp_frr_v4.py                   36     36     0%
show/bgp_frr_v6.py                   33     33     0%
show/bgp_quagga_v4.py                20     20     0%
show/bgp_quagga_v6.py                15     15     0%
show/feature.py                      34      0   100%
show/main.py                       1892   1359    28%
show/mlnx.py                         80     62    23%
utilities_common/__init__.py          0      0   100%
utilities_common/cli.py              26      9    65%
utilities_common/db.py                5      0   100%
utilities_common/intf_filter.py      30     18    40%
utilities_common/netstat.py          35     15    57%
utilities_common/util_base.py        32     32     0%
-----------------------------------------------------
TOTAL                              5834   4148    29%
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml

- Previous command output (if the output of a command-line utility has changed)

- New command output (if the output of a command-line utility has changed)

generate xml, html and term report

Signed-off-by: Guohan Lu <[email protected]>
@lguohan lguohan requested a review from jleveque August 9, 2020 06:26
@lguohan
Copy link
Contributor Author

lguohan commented Aug 9, 2020

let's start from these modules.

@lguohan
Copy link
Contributor Author

lguohan commented Aug 9, 2020

failure not related to this pr.

@lguohan lguohan merged commit fec442e into sonic-net:master Aug 9, 2020
@lguohan lguohan deleted the cov branch August 9, 2020 10:20
@lguohan
Copy link
Contributor Author

lguohan commented Aug 9, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants