GatorIncubator / gatorgrouper

:busts_in_silhouette: Automated Group Formation Tool Enabling Effective Team Work
GNU General Public License v3.0
20 stars 20 forks source link

Test Case, Documentation, Refactoring for `group_graph.py` #261

Closed Lancasterwu closed 5 years ago

Lancasterwu commented 5 years ago

Description of Pull Request

Fixes #241 Fixes #263 Fixed #247

This PR provides the group_graph.py test cases, a refactored group_graph.py, and documentation using group_graph.py in README.md.

This PR contains the following:

Type of Change

Please describe the pull request as one of the following:

@Lancasterwu @thomad74 @wattob @baldeosinghm @yeej2

thomad74 commented 5 years ago

@wattob and I finished the test for the group_graph_partition function with the help of @Lancasterwu . The most recent commit increases code coverage of the group_graph file to 97%, and overall code coverage to 99%. The only lines remaining that are not covered are 68 and 81.

thomad74 commented 5 years ago

I also removed the main function from the group_graph file because it is unnecessary to have at this stage.

wattob commented 5 years ago

The most recent commit should pass Travis

thomad74 commented 5 years ago

The most recent commit should pass Travis

@wattob Your most recent commit does not pass Travis because of what I mentioned in my comment about the two lines that still need coverage to obtain 100%. Once we complete that, it should pass the checks!

baldeosinghm commented 5 years ago

@yeej2 and I have finished adding test cases for group_graph, refactoringgroup_graph, and fixing all bugs in the file. @GatorEducator/gatorgrouper @gkapfham We now have 100% total coverage for GatorGrouper!!!!!!!!!!!!

----------- coverage: platform linux, python 3.7.1-final-0 -----------
Name                                           Stmts   Miss  Cover
------------------------------------------------------------------
gatorgrouper/models.py                            83      0   100%
gatorgrouper/utils/constants.py                   10      0   100%
gatorgrouper/utils/display.py                     23      0   100%
gatorgrouper/utils/group_creation.py             101      0   100%
gatorgrouper/utils/group_graph.py                 71      0   100%
gatorgrouper/utils/group_scoring.py               16      0   100%
gatorgrouper/utils/parse_arguments.py             28      0   100%
gatorgrouper/utils/read_student_file.py           33      0   100%
gatorgrouper/utils/remove_absent_students.py      10      0   100%
------------------------------------------------------------------
TOTAL                                            375      0   100%
Lancasterwu commented 5 years ago

@yeej2 and I have finished adding test cases for group_graph, refactoringgroup_graph, and fixing all bugs in the file. @GatorEducator/gatorgrouper @gkapfham We currently have 100% total coverage for GatorGrouper.

----------- coverage: platform linux, python 3.7.1-final-0 -----------
Name                                           Stmts   Miss  Cover
------------------------------------------------------------------
gatorgrouper/models.py                            83      0   100%
gatorgrouper/utils/constants.py                   10      0   100%
gatorgrouper/utils/display.py                     23      0   100%
gatorgrouper/utils/group_creation.py             101      0   100%
gatorgrouper/utils/group_graph.py                 71      0   100%
gatorgrouper/utils/group_scoring.py               16      0   100%
gatorgrouper/utils/parse_arguments.py             28      0   100%
gatorgrouper/utils/read_student_file.py           33      0   100%
gatorgrouper/utils/remove_absent_students.py      10      0   100%
------------------------------------------------------------------
TOTAL                                            375      0   100%

Not really since we still need to implement group_genetic and not all Django test cases are showing on test coverage report.