NRLMMD-GEOIPS / geoips

Main Geolocated Information Processing System code base with basic functionality enabled.
https://nrlmmd-geoips.github.io/geoips/
Other
13 stars 10 forks source link

Likely need to refactor ``command_combinations`` property in CLI Unit Tests #648

Open evrose54 opened 1 week ago

evrose54 commented 1 week ago

Requested Update

Description

For all CLI Unit Test classes we set a property called command_combinations which includes a 2D list of strings which represent the commands we'd like to test. A few of the combinations are stochastic which we should change to something that is repeatable, and other classes' command_combinations are very large and are likely overkill. To address too many tests being ran, we should create a new, small, set of command combinations which we think will hit 100% coverage. If that doesn't occur, we should slowly expand these lists until we reach 100% coverage.

I'm pretty sure this can be done with pytest using the --cov argument. If that doesn't work, we can do a quick search to get the correct result. I'm also pretty sure we can get this to be done automatically using a pytest configuration file.

Background and Motivation

This stems from a bullet point in issue #541.

Code to demonstrate issue

All of the CLI unit tests.

Checklist for Completion