Skip to content

Project · developer-tool

How To Set Up Unit Testing

an example for testing app codeThis repo gives an example of how to use the MockHdkT for unit testing zome functions and validation rules. Includes configuration settings…
How you run it
not recorded
Holochain version
0.0.101-alpha.0
Activity
stalled
Checked
13 November 2026

What is How To Set Up Unit Testing and what is it for?

How To Set Up Unit Testing is a Rust code example for testing Holochain app validation rules. It uses a mock engine to check how validation functions respond to sample data, so developers can examine tests without running the engine itself.

The project is a historical guide to testing validation rules in Holochain app code. Its README identifies a Holochain revision from June 2021 and notes that anticipated changes to validation calls would require updates, so it does not establish present compatibility.

In plain terms, the example shows how developers can test whether rules accept or reject data by simulating calls to the Holochain engine from Rust tests.

For a concrete example, it includes tests of validation rules for goals and goal comments, such as create, update, and delete cases. The repository README explains the examples and their test setup.

From 3 public sources, checked 12 November 2026.

Try How To Set Up Unit Testing

  • Code on GitHubOpen on GitHub ↗Last change 18 July 2021.
  • ReleaseNo GitHub release recorded.
  • The project's own files do not say how it is run.

Details & sources

Evidence

Last change
api.github.com/repos/holochain-open-dev/minimal-hdk-unit-test-examplelisted by a third party · seen since 20 October 2026 · github.repository@1
Activity
api.github.com/repos/holochain-open-dev/minimal-hdk-unit-test-examplelisted by a third party · seen since 20 October 2026 · liveness@1

Compatibility

hdk
0.0.101-alpha.0 · Cargo.lock @ 7e689e3
hdi
—
holochain-client
—
happ.yaml
absent
web-happ.yaml
absent
Do you maintain How To Set Up Unit Testing?Add your name to this project’s page.
Claim this page