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

[GSoC] Add a few missing tests #240

Merged
merged 5 commits into from Aug 14, 2019
Merged

Conversation

Polaris000
Copy link
Contributor

This pull request adds a few missing tests.

This patch adds tests for the non-pandas version of
the Reviews Accepted metric implementation. 
 
Signed-off-by: Aniruddha Karajgi <akarajgi0@gmail.com>
This patch adds tests for the non-pandas version of
the Code Changes Git reference implementation. 
 
Signed-off-by: Aniruddha Karajgi <akarajgi0@gmail.com>
This patch adds tests for the Code Changes Lines
reference implementation and renames a test for
Code Changes implementation.
 
Signed-off-by: Aniruddha Karajgi <akarajgi0@gmail.com>
This patch adds tests for the non-pandas version of
Reviews Accepted reference implementation. 
 
Signed-off-by: Aniruddha Karajgi <akarajgi0@gmail.com>
This patch adds tests for the non-pandas version of 
the Reviews reference implementation. 
 
Signed-off-by: Aniruddha Karajgi <akarajgi0@gmail.com>
Copy link
Member

@valeriocos valeriocos left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @Polaris000 .

Please try to increase the test coverage. To check the current coverage, you can use the package coverage and execute:

cd wg-evolution/implementations/tests
coverage/__main__.py run run_tests.py --source=../code_df,..scripts
coverage/__main__.py report -m

The output should be something similar to:

Name                                                                                                        Stmts   Miss  Cover   Missing
-----------------------------------------------------------------------------------------------------------------------------------------
/home/slimbook/Escritorio/sources/wg-evolution/implementations/code_df/__init__.py                              0      0   100%
/home/slimbook/Escritorio/sources/wg-evolution/implementations/code_df/code_changes_git.py                     12      1    92%   52
/home/slimbook/Escritorio/sources/wg-evolution/implementations/code_df/code_changes_lines_git.py               41      7    83%   31, 34, 64, 76-79, 85, 132
/home/slimbook/Escritorio/sources/wg-evolution/implementations/code_df/commit_git.py                           37      1    97%   68
/home/slimbook/Escritorio/sources/wg-evolution/implementations/code_df/conditions.py                           57      0   100%
/home/slimbook/Escritorio/sources/wg-evolution/implementations/code_df/issue_github.py                         14      0   100%
/home/slimbook/Escritorio/sources/wg-evolution/implementations/code_df/metric.py                               14      0   100%
/home/slimbook/Escritorio/sources/wg-evolution/implementations/code_df/pullrequest_github.py                   14      0   100%
/home/slimbook/Escritorio/sources/wg-evolution/implementations/code_df/reviews_accepted_github.py              13      1    92%   52
/home/slimbook/Escritorio/sources/wg-evolution/implementations/code_df/reviews_declined_github.py              13      1    92%   55
/home/slimbook/Escritorio/sources/wg-evolution/implementations/code_df/reviews_github.py                       12      1    92%   50
/home/slimbook/Escritorio/sources/wg-evolution/implementations/code_df/utils.py                                16      0   100%
/home/slimbook/Escritorio/sources/wg-evolution/implementations/scripts/__init__.py                              0      0   100%
/home/slimbook/Escritorio/sources/wg-evolution/implementations/scripts/code_changes_git.py                      8      0   100%
/home/slimbook/Escritorio/sources/wg-evolution/implementations/scripts/code_changes_lines_git.py               39      7    82%   31, 34, 64, 76-79, 85, 106
/home/slimbook/Escritorio/sources/wg-evolution/implementations/scripts/commit_git.py                           36      7    81%   36-37, 40, 45-48, 68, 96
/home/slimbook/Escritorio/sources/wg-evolution/implementations/scripts/conditions.py                           55     24    56%   109, 141-144, 167-184, 208-211, 234-237
/home/slimbook/Escritorio/sources/wg-evolution/implementations/scripts/metric.py                                7      0   100%
/home/slimbook/Escritorio/sources/wg-evolution/implementations/scripts/pullrequest_github.py                   14      0   100%
/home/slimbook/Escritorio/sources/wg-evolution/implementations/scripts/reviews_accepted_github.py               9      1    89%   26
/home/slimbook/Escritorio/sources/wg-evolution/implementations/scripts/reviews_github.py                        9      1    89%   23
/home/slimbook/Escritorio/sources/wg-evolution/implementations/scripts/utils.py                                16      6    62%   38-44

@valeriocos valeriocos merged commit a960697 into chaoss:master Aug 14, 2019
@Polaris000 Polaris000 deleted the AddmissingTests branch August 15, 2019 11:00
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.

None yet

2 participants