İçeriğe atla

Proje

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…
Nasıl çalıştırılır
kaydedilmedi
Holochain sürümü
0.0.101-alpha.0
Etkinlik
durgun
Kontrol edildi
13 Kasım 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.

3 herkese açık kaynaktan derlendi; son kontrol: 12 Kasım 2026.

Deneyin: How To Set Up Unit Testing

  • GitHub'daki kodGitHub'da aç ↗Last change 18 Temmuz 2021.
  • SürümKayıtlı GitHub sürümü yok.
  • Projenin kendi dosyaları nasıl çalıştırıldığını belirtmiyor.

Ayrıntılar ve kaynaklar

Kanıt

Son değişiklik
api.github.com/repos/holochain-open-dev/minimal-hdk-unit-test-exampleüçüncü bir tarafça listelenmiş · 20 Ekim 2026 tarihinden beri görülüyor · github.repository@1
Etkinlik
api.github.com/repos/holochain-open-dev/minimal-hdk-unit-test-exampleüçüncü bir tarafça listelenmiş · 20 Ekim 2026 tarihinden beri görülüyor · liveness@1

Uyumluluk

hdk
0.0.101-alpha.0 · Cargo.lock @ 7e689e3
hdi
—
holochain-client
—
happ.yaml
yok
web-happ.yaml
yok
How To Set Up Unit Testing projesini siz mi sürdürüyorsunuz?Adınızı bu projenin sayfasına ekleyin.
Bu sayfayı sahiplenin