Robustness: Improve Test Coverage of Repo #185
Labels
Code Health
Refactors and improvements to the structure of the code
help wanted
Extra attention is needed
High Priority
Robustness
Changes that improve the robustness of running the simulator
Milestone
SimLN started as a hackathon project, so it doesn't have much by way of unit tests. This is very, very bad.
We should aim to dramatically improve the coverage of the codebase to ensure that everything is working as expected, and there are no future regressions.
A great first starting point would be to add test coverage for
Simulator
with mock outLightningNode
implementations. See sim node mocking as an example of how to go about this.Low hanging fruit:
validate_activity
validate_node_network
Middle tier:
Test individual functions for their expected behavior, eg:
consume_events
send_payment
failure,listener
shutdown etcsend_payment
for bothSimulationOutput::SendPaymentSuccess
/SimulationOutput::SendPaymentFailure
etcA few considerations here:
consume_events
in a separate task so the test can runThe rest of the elephant:
Simulation::run
function with mocked nodesThe text was updated successfully, but these errors were encountered: