Closed dauphin3 closed 1 year ago
This issue focuses on testing the already generated code for creating, updating, deleting, and getting HolonDescriptors
and PropertyDescriptors
from the holochain DHT.
Desired tests:
Some guidelines:
I've had a chance to think more deeply about the MAP Descriptors test strategy. Here are a few observations:
So I've restructured things as follows:
HolonDescriptors
of various kinds -- from simple to complex get_all_holon_types()
(both before and after creating holon descriptors), create_holon_descriptor()
, get_holon_descriptor()
, (and eventually, delete_holon_descriptor() and update_holon_descriptor()
)cargo test
only shows stdout
on failures. So the intermediate results are only shown if some test fails. To always see the testing progress, use cargo test -- --show-output
We can follow a similar approach to structuring property_descriptor_tests.
actually leverage the DHT via mock conductor to create HC entries and retrieve them by hash