Closed ggoranov closed 5 years ago
Seems that similar idea was already implemented in https://github.com/btcsuite/btcsim. So not sure if it makes sense in the context of Decred. @davecgh Your input here would be helpful.
I suggest taking a look at rpctest
which already effectively provides the capability. It's also worth noting that @JFixby has been working to split it up into more reusable modules and clean it up a bit.
For example, see the RPC server test file setup.
@davecgh Seems you've already made progress on that idea.
I confirm I have something in progress in this direction.
Problem:
There is not a testing mechanism where a developer can automate the testing of issues like https://github.com/decred/dcrwallet/issues/1297
Proposal:
A new testing environment would be able to automatically
Advantages:
Example:
Issue: dcrwallet/issues/1297
Pseudo code: