ssvlabs / ssv-spec

GNU General Public License v3.0
25 stars 21 forks source link

We seem to have some redundancy with "e2e" and "unit tests" #448

Open GalRogozinski opened 2 weeks ago

GalRogozinski commented 2 weeks ago
          We seem to have some redundancy with those tests...

Both QBFT and types/partialSig tests pretty much concentrate on the outer-wrapper msg.Validate() function and pretty much test the same thing.

In ssv with the MsgProcessingSpecTest we pretty much do the same checks all over again, just in the context of the entire processing.

We need to have a discussion on how we do this properly... Do we want to have those MsgSpecTest check all the validation cases and have another test that proves that the Validate function is called? Maybe we can have only MsgProcessingTests?

Originally posted by @GalRogozinski in https://github.com/ssvlabs/ssv-spec/issues/441#issuecomment-2203107688