Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ergo core tests refactor #2132

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Conversation

ccellado
Copy link
Collaborator

@ccellado ccellado commented Mar 1, 2024

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

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
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
@ccellado ccellado requested a review from kushti March 1, 2024 20:38
@stenolog stenolog mentioned this pull request Mar 2, 2024
@kushti kushti merged commit 85336b7 into ergoplatform:v5.0.21 Mar 4, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants