···3535- TODO: configure tangled CI to run these on PR
363637373838+#### nextest
3939+4040+the full test suite should run in single-digit seconds on a fast machine, but you can make it go slightly faster (and with prettier output) with [`cargo-nextest`](https://nexte.st/)
4141+4242+```bash
4343+$ cargo install cargo-nextest --locked
4444+```
4545+4646+then do `cargo nextest run`. or `cargo t` -- aliased in `./cargo/config.toml`.
4747+4848+if your terminal makes annoying noisy output for BEL chars like mine does (which, nextest outputs many!!), there's a wrapper to strip them, `./test-quiet.sh`.
4949+5050+the wrapper also sets the concurrency to CPUs * 3 which seems to be the fastest for this test suite for me. if you're not using the wrapper, you can do it manually like `cargo t -j 30`.
5151+5252+3853## current implementation status
39544055lightrail is like 4% interesting approach to `listReposByCollection` and 96% just a sync1.1 implementation.
+11
test-quiet.sh
···11+#!/bin/bash
22+33+# with all the db setup/teardown, this suite runs best with 3x cpu jobs for me
44+cpus=$(sysctl -n hw.logicalcpu 2>/dev/null || nproc 2>/dev/null)
55+jobs_arg=$( [ -n "$cpus" ] && echo "-j $(( cpus * 3 ))" )
66+77+# strip BEL chars that are noisy in some terminals, without losing everything
88+# shellcheck disable=SC2086 # $jobs_arg intentionally unquoted
99+cargo nextest run --color=always $jobs_arg "$@" 2>&1 | tr -d '\007'
1010+1111+exit "${PIPESTATUS[0]}"