evomimic / map-descriptors2

0 stars 0 forks source link

Extend Test Cases to Cover Holochain Storage Lifecycle #5

Closed dauphin3 closed 1 year ago

dauphin3 commented 1 year ago

actually leverage the DHT via mock conductor to create HC entries and retrieve them by hash

evomimic commented 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:

  1. Put each test in its own .rs file within the coordinator tests folder.
  2. Avoid making changes to the query and storage functions generated by the scaffold tool
  3. Leverage the stub_data_creator to create the data used by create_holon_descriptor
evomimic commented 1 year ago

I've had a chance to think more deeply about the MAP Descriptors test strategy. Here are a few observations:

Get and Create Functions:

Creating Many Holon Descriptors

Functions are the same, what varies it the data

Restructuring

So I've restructured things as follows:

Implications

To always see the testing progress, use cargo test -- --show-output

We can follow a similar approach to structuring property_descriptor_tests.