Extract bonds file parser tests from GenesisTest file
tgrospic opened this issue · comments
Tomislav Grospić commented
Overview
Tests in GenesisTest (also from the first commit) file doesn't really check genesis block overall, but are mainly oriented to checking if bonds file is read with correct data or if it's missing that genesis use generated data.
One test is close which check if genesis block can be replayed correctly, but it doesn't check what important, if data on chain are created correctly with corresponding input.
rchain/casper/src/test/scala/coop/rchain/casper/genesis/GenesisTest.scala
Lines 166 to 189 in 05c2d29
Solution
- Extract tests for bonds parser as unit tests completely separated from the whole genesis creation logic.
- Write new tests for genesis block without dependency to file based configuration and with checking of all relevant data expected to be created with genesis block.