diff options
Diffstat (limited to 'docs/development.md')
| -rw-r--r-- | docs/development.md | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/docs/development.md b/docs/development.md index f921d22..2ad5bd6 100644 --- a/docs/development.md +++ b/docs/development.md @@ -3,18 +3,20 @@ ## The loop ```sh -cargo check --features mycelium,libp2p,tor,dashboard,federation # does it compile: seconds -cargo quick # every test but the simulations: seconds -cargo sim # the simulations (src/simtest/): under a minute -cargo test --features mycelium,libp2p,tor,dashboard,federation # both -cargo benchmarks # the benchmarks, in release builds +cargo check --features most # does it compile: seconds +cargo quick # every test but the simulations: seconds +cargo sim # the simulations (src/simtest/): under a minute +cargo test --features most # both +cargo benchmarks # the benchmarks, in release builds ``` `cargo quick`, `cargo sim` and `cargo benchmarks` are aliases ([`.cargo/config.toml`](../.cargo/config.toml)), -with every transport, the dashboard (`dashboard`, `GET /admin/dashboard`; +with the feature `most`: every transport, the dashboard (`dashboard`, `GET /admin/dashboard`; [`docs/dashboard.md`](dashboard.md)) and the federation (`federation`, built stage by stage and -not yet run by a node: [`docs/federation.md`](federation.md), [`docs/store.md`](store.md)); a -build without `federation` runs the tests continuum has without it. Each transport is a feature, +not yet run by a node: [`docs/federation.md`](federation.md), [`docs/store.md`](store.md)). +Development builds with `most` throughout, checks and single tests too: with one set of +features, none rebuilds what another built. A build without `federation` runs the tests +continuum has without it. Each transport is a feature, none of them default, and a build needs at least one: a transport left out takes its tests and dependencies with it (`--features libp2p` builds neither `reqwest` and the daemon supervision of Mycelium, nor arti; among Mycelium's tests is a swarm simulated on its @@ -50,7 +52,7 @@ MiB/s and 500 ms unless `BENCH_BRIDGE_FAST_RATE`, `BENCH_BRIDGE_SLOW_RATE` (MiB/ the same estimated on the member list's graph alone for up to 2000 members, with some links down, as now and along the writer's tree (`swarm/topology/tests.rs`, `bench_writer_trees`). One of -them alone: `cargo test --release --features mycelium,libp2p,tor,dashboard +them alone: `cargo test --release --features most bench_propagation -- --ignored --nocapture`. The dashboard's page has browser checks (`src/api/dashboard/check.js`): it loads @@ -61,7 +63,7 @@ from nixpkgs (Playwright's library and browsers of one version, nothing from npm ``` nix-shell src/api/dashboard/check.nix --run \ - 'cargo test --features dashboard dashboard_in_a_browser -- --ignored' + 'cargo test --features most dashboard_in_a_browser -- --ignored' ``` The simulations send the wire encoding alone, as libp2p and Tor do; a simulated net |
