Refactor unit tests #429
Labels
O: maintainability
Objective: cause to ease modification, fault corrections and improve code understanding
O: testing
Objective: aims to improve testing coverage
Our unit tests make extensive use of default values, including in "util" functions implicitly used, which creates hard to understand relationships, and ultimately makes it difficult to understand why a test succeeds or fails. For example, some validation checks probably work because we used the default value for our
ClientId
, which happens to be also used when, say, creating the "dummy" packet.I've also seen tests such as this one which claims a reason for the test to fail (e.g. the client doesn't have a consensus state at the required height), but no client is even installed in that
MockContext
.The text was updated successfully, but these errors were encountered: