Skip to content

[test] Update unit test coverage for command 'show mac'#1504

Merged
gechiang merged 1 commit intosonic-net:masterfrom
d-dashkov:ut_show_mac
Mar 18, 2021
Merged

[test] Update unit test coverage for command 'show mac'#1504
gechiang merged 1 commit intosonic-net:masterfrom
d-dashkov:ut_show_mac

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Mar 15, 2021

  • Adding unit tests for CLI command 'show mac'. Testing
    both CLI command and 'fdbshow' script.

Signed-off-by: Maksym Belei [email protected]

What I did

Unit test coverage has updated for CLI command show mac. The PR includes test case for #1368.

How I did it

Added new unit tests for command show mac. Tested both CLI command and fdbshow script directly.

How to verify it

See unit test coverage report.

@ghost ghost marked this pull request as ready for review March 15, 2021 18:45
@ghost
Copy link
Copy Markdown
Author

ghost commented Mar 15, 2021

@gechiang, I have added unit tests for 'show mac', including test case for #1368, as you asked before. Could you check the PR?

@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Mar 15, 2021

This pull request introduces 1 alert when merging 6f70d0df650b4b593af6a8b12681272a534f5950 into 0de99c3 - view on LGTM.com

new alerts:

  • 1 for Unused import

@ghost ghost force-pushed the ut_show_mac branch from 6f70d0d to 0762866 Compare March 15, 2021 20:34
@lguohan lguohan requested a review from gechiang March 16, 2021 12:30
@gechiang
Copy link
Copy Markdown
Contributor

@maksymbelei95 testcases looks good. According to the test report it shows following:
scripts/fdbshow 109 11 48 10 87%
Can you add a few more tests to boost the code coverage to above 90%?
Thank you!

* Adding unit tests for CLI command 'show mac'. Testing
  both CLI command and 'fdbshow' script.

Signed-off-by: Maksym Belei <[email protected]>
@ghost ghost force-pushed the ut_show_mac branch from 0762866 to 8eddd2b Compare March 18, 2021 12:42
@ghost
Copy link
Copy Markdown
Author

ghost commented Mar 18, 2021

@gechiang, I have updated unit tests and made some refactoring in fdshow script. Could you check the updates? Currently, fdbshow has covered by 100%.

@gechiang
Copy link
Copy Markdown
Contributor

Nice work!
Thanks for providing all variation of test cases to provide the code coverage!

@gechiang gechiang merged commit 3a482ac into sonic-net:master Mar 18, 2021
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.

1 participant