ergoplatform / ergo

Ergo protocol description & reference client implementation
https://ergoplatform.org/
Creative Commons Zero v1.0 Universal
504 stars 170 forks source link

ergo core tests refactor #2132

Closed ccellado closed 8 months ago

ccellado commented 9 months ago

Closes #2065

Extract PoPowAlgosSpec -> PoPowAlgosWithDBSpec Extract SerializationTest -> SerializationCoreTest Extract JsonSerializationSpec -> JsonSerializationCoreSpec Move scorex.testkit.SerializationTests -> ergo-core/org.ergoplatform/utils NiPoPoWVerifierSpec has to stay in node's test since ChainGenerators it requires uses ErgoHistory Create ChainSettingsReader in ergocore Refactor generators to use Object instead of trait. To avoid OOP inheritance spagetti Remove scores.testkit.CoreGenerators Move scorex.testkit.generators.ObjectGenerators -> ergo-core/org.ergoplatform.utils.generators.CoreGenerators Extract ergo-node specific ConnectedPeerGenerators from CoreGenerators Move DefaultFakePowScheme to ergo-core Dissect ErgoTestConstants into ErgoCoreTestConstants & ErgoNodeTestConstants Move settings.LaunchParameters to ergo-core Dissect ErgoTransactionGenerators into ErgoCoreTransactionGenerators & ErgoNodeTransactionGenerators Dissect part of VotingSpecification to ErgoNodeVotingSpecification