holochain icon indicating copy to clipboard operation
holochain copied to clipboard

[Feature Request] Sweettest alternative that only uses `holochain_client` to connect to the conductors

Open guillemcordoba opened this issue 2 years ago • 5 comments

Currently, I have two types of tests in my repositories:

  • Zome level tests: they test each zome and its integrity in isolation, to make sure that they work. These are tests written in rust and use sweettest to orchestrate the test.
  • Integration tests: these are app level test, supposed to make sure that the whole flow of the app works. These are node.js tests written with tryorama, this is to also test UI level logic which is written in JS.

This setup works mostly fine... Except two problems:

  • I have to manually specify the version of holochain I'm using in two places:
    • One in the flake.nix -> this will be used by tryorama tests and hc-launch
    • Another in the top level Cargo.toml, this is the one that sweettests will use
  • First time compilation for sweettest takes forever, as it needs to compile the whole of holochain which are 1000+ crates.

I would love to have a rust-based sweettest alternative that works just exactly like tryorama does: spawns the holochain binary that's found in the shell and connects to it using holochain_client.

This is not a blocker, more like a nice to have.

guillemcordoba avatar Mar 25 '24 11:03 guillemcordoba

It is on mine and @jost-s's radar to extract sweettest into its own library and make it more friendly to use, as well as extending it to behave more like tryorama. I would like to get to this sooner rather than later but there's a lot happening at the moment :)

ThetaSinner avatar Mar 28 '24 10:03 ThetaSinner

This item has been open for 30 days with no activity.

github-actions[bot] avatar Apr 28 '24 02:04 github-actions[bot]

This item has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar May 12 '24 02:05 github-actions[bot]

This item has been open for 30 days with no activity.

github-actions[bot] avatar Jul 13 '24 02:07 github-actions[bot]