Ubuntu setup:
apt update
apt install libsqlite3-dev
cargo install diesel_cli --no-default-features --features sqlite
export DATABASE_URL=development.sqlite3In another shell, if you want a Holochain instance to test against:
nix developThe inside that shell:
hc s clean && echo -n "1234" | hc s --piped create && echo -n "1234" | hc s --piped -f 8888 runWith a running conductor, tag the conductor:
cargo run --features discover -- conductor-tag add testBuild the fixture:
cd fixture
./package.sh
cd ..Install the fixture:
cargo run -- admin --tag test install-app ./fixture/happ/fixture.happInitialise the fixture:
cargo run -- init --tag test execute fixtureWhen prompted for hte zome to call, use fixture.
You should see Init result: Pass.