Closed brockfanning closed 2 years ago
Would it be good to first understand what these tests are doing? As the code doesn't look crazy hard, I think it might be good to unpick it and document it then decide whether to revamp (partly by adding more documentation) or replace.
@jwestw The things that the tests already cover are:
There are several notable things that we are not testing at all:
In addition, some of the existing tests may be insufficient. For example, the test of the disaggregation report only checks to make sure certain pages exists at all. But it does not test specific things on the pages (like confirming the number of disaggregations listed, etc.)
My main concern -- and the reason for my posting this issue -- is that it's not obvious how to add new tests for these missing things. That may be due to my inexperience with Python testing, but that is the point: I would like to structure the tests so that it's simple for a relative beginner to add a new one, so that we don't end up with so many untested features, like we have now.
Thank you Brock
@LucyGwilliamAdmin @otis-bath This might be something to pursue - we still have a deficit of test coverage on sdg-build.
A lot of the functionality in this library is not covered by tests. That's one problem; the other problem is that it's not easy for developers (or at least this developer) to add tests. That may be fixable by becoming more familiar with Python test suites in general, but also there may be a way to rewrite the test code to make this easier. So I think we should pick an approach and move forward, either: