hermes icon indicating copy to clipboard operation
hermes copied to clipboard

Use structs to convert JSON outputs in the test framework

Open ljoss17 opened this issue 1 year ago • 0 comments

Proposal

In Hermes test framework it is sometimes required to parse JSON output of CLIs. As suggested in this comment, https://github.com/informalsystems/hermes/pull/3694#discussion_r1395448432, the test framework should use struct that match the expected output and which derive Deserialize. This will allow converting the JSON output in the expected struct to have a cleaner test framework


For Admin Use

  • [ ] Not duplicate issue
  • [ ] Appropriate labels applied
  • [ ] Appropriate milestone (priority) applied
  • [ ] Appropriate contributors tagged
  • [ ] Contributor assigned/self-assigned

ljoss17 avatar Nov 16 '23 15:11 ljoss17