Skip to content

Conversation

@MarshalX
Copy link
Contributor

@MarshalX MarshalX commented Apr 25, 2023

coverage report before:

Name                                                   Stmts   Miss  Cover
--------------------------------------------------------------------------
cli/__init__.py                                            1      0   100%
cli/ci_integrations.py                                    37     30    19%
cli/code_scanner.py                                      630    495    21%
cli/config.py                                              9      0   100%
cli/consts.py                                             57      0   100%
cli/exceptions/__init__.py                                 0      0   100%
cli/exceptions/custom_exceptions.py                       32     17    47%
cli/helpers/__init__.py                                    0      0   100%
cli/helpers/maven/__init__.py                              0      0   100%
cli/helpers/maven/base_restore_maven_dependencies.py      39     19    51%
cli/helpers/maven/restore_gradle_dependencies.py          16      4    75%
cli/helpers/maven/restore_maven_dependencies.py           36     19    47%
cli/helpers/sca_code_scanner.py                           79     54    32%
cli/models.py                                             29     11    62%
cli/printers/__init__.py                                   4      0   100%
cli/printers/base_printer.py                              11      2    82%
cli/printers/json_printer.py                              20      9    55%
cli/printers/results_printer.py                           17      7    59%
cli/printers/table_printer.py                             93     65    30%
cli/printers/text_printer.py                             124     90    27%
cli/user_settings/__init__.py                              0      0   100%
cli/user_settings/base_file_manager.py                    16      4    75%
cli/user_settings/config_file_manager.py                  68     20    71%
cli/user_settings/configuration_manager.py               100     54    46%
cli/user_settings/credentials_manager.py                  35     15    57%
cli/user_settings/user_settings_commands.py               83     33    60%
cli/utils/__init__.py                                      0      0   100%
cli/utils/path_utils.py                                   45     24    47%
cli/utils/scan_utils.py                                    5      3    40%
cli/utils/shell_executor.py                               18     12    33%
cli/utils/string_utils.py                                 27      8    70%
cli/utils/task_timer.py                                   41     24    41%
cli/utils/yaml_utils.py                                   20     13    35%
cli/zip_file.py                                           17      7    59%
cyclient/__init__.py                                       3      0   100%
cyclient/config.py                                        47      3    94%
cyclient/config_dev.py                                     3      0   100%
cyclient/cycode_client.py                                  7      2    71%
cyclient/cycode_client_base.py                            24     13    46%
cyclient/cycode_dev_based_client.py                       11      5    55%
cyclient/cycode_token_based_client.py                     33     21    36%
cyclient/models.py                                       201     58    71%
cyclient/scan_client.py                                  124     94    24%
cyclient/scan_config/__init__.py                           0      0   100%
cyclient/scan_config/scan_config_base.py                  35     13    63%
cyclient/scan_config/scan_config_creator.py               19     10    47%
--------------------------------------------------------------------------
TOTAL                                                   2216   1258    43%

coverage report after:

Name                                                   Stmts   Miss  Cover
--------------------------------------------------------------------------
cli/__init__.py                                            1      0   100%
cli/auth/__init__.py                                       0      0   100%
cli/auth/auth_command.py                                  26     17    35%
cli/auth/auth_manager.py                                  76     39    49%
cli/ci_integrations.py                                    37     30    19%
cli/code_scanner.py                                      630    364    42%
cli/config.py                                              9      0   100%
cli/consts.py                                             57      0   100%
cli/cycode.py                                             80      8    90%
cli/exceptions/__init__.py                                 0      0   100%
cli/exceptions/custom_exceptions.py                       32     10    69%
cli/helpers/__init__.py                                    0      0   100%
cli/helpers/maven/__init__.py                              0      0   100%
cli/helpers/maven/base_restore_maven_dependencies.py      39     19    51%
cli/helpers/maven/restore_gradle_dependencies.py          16      4    75%
cli/helpers/maven/restore_maven_dependencies.py           36     19    47%
cli/helpers/sca_code_scanner.py                           79     54    32%
cli/models.py                                             29      5    83%
cli/printers/__init__.py                                   4      0   100%
cli/printers/base_printer.py                              11      1    91%
cli/printers/json_printer.py                              20      0   100%
cli/printers/results_printer.py                           17      1    94%
cli/printers/table_printer.py                             93     65    30%
cli/printers/text_printer.py                             124     26    79%
cli/user_settings/__init__.py                              0      0   100%
cli/user_settings/base_file_manager.py                    16      6    62%
cli/user_settings/config_file_manager.py                  68     19    72%
cli/user_settings/configuration_manager.py               100     48    52%
cli/user_settings/credentials_manager.py                  35     12    66%
cli/user_settings/user_settings_commands.py               83     33    60%
cli/utils/__init__.py                                      0      0   100%
cli/utils/path_utils.py                                   45     12    73%
cli/utils/scan_utils.py                                    5      3    40%
cli/utils/shell_executor.py                               18     12    33%
cli/utils/string_utils.py                                 27      5    81%
cli/utils/task_timer.py                                   41     24    41%
cli/utils/yaml_utils.py                                   20     13    35%
cli/zip_file.py                                           17      0   100%
cyclient/__init__.py                                       3      0   100%
cyclient/auth_client.py                                   39      0   100%
cyclient/config.py                                        47      3    94%
cyclient/config_dev.py                                     3      0   100%
cyclient/cycode_client.py                                  7      0   100%
cyclient/cycode_client_base.py                            24      2    92%
cyclient/cycode_dev_based_client.py                       11      0   100%
cyclient/cycode_token_based_client.py                     33      0   100%
cyclient/models.py                                       201     26    87%
cyclient/scan_client.py                                  124     62    50%
cyclient/scan_config/__init__.py                           0      0   100%
cyclient/scan_config/scan_config_base.py                  35      3    91%
cyclient/scan_config/scan_config_creator.py               19      4    79%
--------------------------------------------------------------------------
TOTAL                                                   2437    949    61%

@MarshalX MarshalX marked this pull request as ready for review April 28, 2023 14:28
@artem-fedorov
Copy link

GREAT JOB!

Copy link
Contributor

@MichalBor MichalBor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! 💯

@MarshalX MarshalX merged commit 141e28f into main May 2, 2023
@MarshalX MarshalX deleted the CM-22159-add-unit-tests-coverage branch May 2, 2023 09:01
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.

4 participants