Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 902 Bytes

File metadata and controls

56 lines (37 loc) · 902 Bytes

Developer setup

Ubuntu setup:

apt update
apt install libsqlite3-dev
cargo install diesel_cli --no-default-features --features sqlite

export DATABASE_URL=development.sqlite3

In another shell, if you want a Holochain instance to test against:

nix develop

The inside that shell:

hc s clean && echo -n "1234" | hc s --piped create && echo -n "1234" | hc s --piped -f 8888 run

Using in a test setup

With a running conductor, tag the conductor:

cargo run --features discover -- conductor-tag add test

Build the fixture:

cd fixture
./package.sh
cd ..

Install the fixture:

cargo run -- admin --tag test install-app ./fixture/happ/fixture.happ

Initialise the fixture:

cargo run -- init --tag test execute fixture

When prompted for hte zome to call, use fixture.

You should see Init result: Pass.