Opened 4 years ago

Closed 4 years ago

#66 closed task (fixed)

Achieve 100% test coverage

Reported by: cito Owned by:
Priority: minor Milestone: 5.0
Component: Tests Version: 4.1
Keywords: tests Cc:

Description

When running the tests in the trunk with coverage run setup.py test, I currently get 87% percent for pg and 85% for pgdb. Since there are some case distinctions for different Python versions this is already pretty good, and 100% coverage cannot be expected when running one Python version only. We should go through the coverage result and check if there is still relevant code that is not tested in any of the supported Python versions.

Change History (2)

comment:1 Changed 4 years ago by cito

In r764 I achieved 100% test coverage now for the pg module (some lines are only reachable with certain Python and Postgres versions, but I have tested these as well).

Need to look at pgdb now.

comment:2 Changed 4 years ago by cito

  • Resolution set to fixed
  • Status changed from new to closed

In r772 I also achieved nearly 100% test coverage for the pgdb modules (again, some lines are only reachable with certain Python and Postgres versions, or by causing obscure database errors which are difficult to provoke in tests).

So I think we can close this ticket now.

Note: See TracTickets for help on using tickets.