bafnetwork/baf-wallet-v2

Define ChainInterface test suite template

Aperta

#40 aperta il 30 apr 2021

 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (0 fork)auto 404
help wantedtesting

Metriche repository

Star
 (4 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

We now have the ChainInterface type that generalizes operations performed on any chain, but we don't yet have a clear definition of how each of the methods should behave in certain circumstances.

I think it would make the most sense to write a ChainInterface "test suite template" that can function as a "working spec" for all chain implementations so that we can make their behavior as consistent and predictable as possible.

Why not just a single test suite for all implementations? Well because the initialization and send/sign/build argument types they all take differ from implementation to implementation, so some code will need to be re-written between implementations.

Guida contributor