You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[test]: cover ancestry --json rejections in the CLI tests #23
crates/externalize-cli/tests/cli.rs checks externalize ancestry when it succeeds (text and --json), and when a header file is missing (text). A script reading --json gets no test for the failure shape.
Scope
Add tests that run ancestry --json and parse stdout as JSON:
with only ledger-03dca33f.xdr.gz: verified is false, error mentions header missing, exit status 1;
with --ledger 64791359 (the certified ledger itself): error mentions not older, exit status 1.
Done when
Both tests pass with cargo test -p externalize-cli.
They fail if ancestry printed a rejection as text in --json mode.
Comment to be assigned before starting. Read CONTRIBUTING.md for the checks this repository runs.
Activity
test(cli): cover ancestry --json rejections in the CLI tests
comandanto commentedon Oct 28, 2026
I would like to work on this issue.
Implementation Plan:
crates/externalize-cli/tests/cli.rs:ancestry --jsonwith onlyledger-03dca33f.xdr.gz:verifiedisfalse, anderrorfield containsheader missing.ancestry --jsonwith--ledger 64791359:verifiedisfalse, anderrorfield containsnot older.--jsonmode.cargo test -p externalize-clito verify all CLI tests pass (18/18).cargo fmt --checkandcargo clippy -p externalize-cli -- -D warnings.Ready to implement and open a pull request promptly upon assignment.
samjay8 commentedon Oct 29, 2026
@comandanto assigned to you, go ahead. Open a PR that says
Closes #23; once CI and the checks pass it will be reviewed and merged.