AstuteSource / chasten

:dizzy: Chasten Uses XML and XPATH to Check a Python Program's AST for Specified Patterns!
https://pypi.org/project/chasten/
GNU General Public License v2.0
7 stars 8 forks source link

Increase test coverage #124

Closed CalebKendra closed 7 months ago

CalebKendra commented 7 months ago
  1. Make sure the title is descriptive of what the PR includes. Don't mention issue names/numbers; save that for the description.

  2. List the names of those who contributed to the project.

@CalebKendra @boulais01

  1. Link the issue the pull request is meant to fix/resolve.

11 (Although this issue needs to be worked on further as it is very large in scope)

  1. Describe the contents and goal of the pull request.

This pull request adds and modifies test cases to various files in the program.

Many of my commits were working on a test case for the display_serve_or_publish_details function based on rich console outputs. I encountered a problem as the function would output its fuzzed hypothesis information every time I ran a coverage test. Although there is a capsys fixture built into pytest that can fix this issue, I was unable to get it to work in the limited time I had. For these reasons, I decided to ship the feature before the end of the semester.

I will continue to work on this branch to improve test coverage more in the future.

  1. Will coverage be maintained/increased?

Increased