{"id":13477846,"url":"https://github.com/josecelano/cargo-pretty-test","last_synced_at":"2025-04-06T08:13:48.633Z","repository":{"id":196152854,"uuid":"694742470","full_name":"josecelano/cargo-pretty-test","owner":"josecelano","description":"A Rust command that prettifies the ugly `cargo test` output into a beautiful one.","archived":false,"fork":false,"pushed_at":"2023-12-11T02:32:42.000Z","size":118,"stargazers_count":140,"open_issues_count":11,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T06:09:59.174Z","etag":null,"topics":["hacktoberfest","rust-lang","testing"],"latest_commit_sha":null,"homepage":"https://users.rust-lang.org/t/cargo-test-output-with-indentation/100149","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/josecelano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-09-21T15:45:22.000Z","updated_at":"2025-01-28T07:21:47.000Z","dependencies_parsed_at":"2023-09-21T19:56:01.485Z","dependency_job_id":"43394a22-8efb-4dcb-b106-7e1d44bdcfae","html_url":"https://github.com/josecelano/cargo-pretty-test","commit_stats":null,"previous_names":["josecelano/cargo-pretty-test","josecelano/pretty-test"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josecelano%2Fcargo-pretty-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josecelano%2Fcargo-pretty-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josecelano%2Fcargo-pretty-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josecelano%2Fcargo-pretty-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josecelano","download_url":"https://codeload.github.com/josecelano/cargo-pretty-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247451665,"owners_count":20940944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","rust-lang","testing"],"created_at":"2024-07-31T16:01:48.426Z","updated_at":"2025-04-06T08:13:48.602Z","avatar_url":"https://github.com/josecelano.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Cargo Pretty Test ✨\n\n[![Testing](https://github.com/josecelano/pretty-test/actions/workflows/testing.yaml/badge.svg)](https://github.com/josecelano/pretty-test/actions/workflows/testing.yaml)\n[![Crates.io](https://img.shields.io/crates/v/cargo-pretty-test)](https://crates.io/crates/cargo-pretty-test)\n[![docs.rs](https://img.shields.io/docsrs/cargo-pretty-test)](https://docs.rs/cargo-pretty-test)\n\nA Rust command-line tool that prettifies the ugly `cargo test` output into a beautiful output.\n\nThis crate can be also used as a library that [fully parses][parsing] the output from `cargo test`.\n\n[parsing]: https://docs.rs/cargo-pretty-test/*/cargo_pretty_test/parsing/index.html\n\n```console\n$ cargo pretty-test --workspace --no-fail-fast\n\nError details from `cargo test` if any ... (Omitted here)\n\nGenerated by cargo-pretty-test\n├── (OK) cargo_pretty_test ... (4 tests in 0.16s: ✅ 4)\n│   ├── (OK) tests/golden_master_test.rs ... (1 tests in 0.00s: ✅ 1)\n│   │   └─ ✅ golden_master_test\n│   ├── (OK) tests/mocking_project.rs ... (2 tests in 0.16s: ✅ 2)\n│   │   ├─ ✅ snapshot_testing_for_parsed_output\n│   │   └─ ✅ snapshot_testing_for_pretty_output\n│   └── (OK) tests/parsing.rs ... (1 tests in 0.00s: ✅ 1)\n│       └─ ✅ parse_stderr_stdout\n├── (FAIL) integration ... (10 tests in 0.00s: ✅ 6; ❌ 2; 🔕 2)\n│   ├── (FAIL) src/lib.rs ... (8 tests in 0.00s: ✅ 4; ❌ 2; 🔕 2)\n│   │   ├── submod\n│   │   │   ├─ 🔕 ignore\n│   │   │   ├─ 🔕 ignore_without_reason\n│   │   │   ├─ ✅ normal_test\n│   │   │   └── panic\n│   │   │       ├─ ❌ panicked\n│   │   │       ├─ ✅ should_panic - should panic\n│   │   │       ├─ ❌ should_panic_but_didnt - should panic\n│   │   │       └─ ✅ should_panic_without_reanson - should panic\n│   │   └─ ✅ works\n│   ├── (OK) src/main.rs ... (1 tests in 0.00s: ✅ 1)\n│   │   └─ ✅ from_main_rs\n│   └── (OK) tests/parsing.rs ... (1 tests in 0.00s: ✅ 1)\n│       └─ ✅ from_integration\n└── (OK) Doc Tests ... (2 tests in 0.41s: ✅ 2)\n    ├── (OK) cargo-pretty-test ... (1 tests in 0.20s: ✅ 1)\n    │   └─ ✅ src/doc.rs - doc (line 3)\n    └── (OK) integration ... (1 tests in 0.21s: ✅ 1)\n        └─ ✅ tests/integration/src/lib.rs - doc (line 41)\n\nStatus: FAIL; total 16 tests in 0.57s: 12 passed; 2 failed; 2 ignored; 0 measured; 0 filtered out\n```\n\n![](https://user-images.githubusercontent.com/25300418/270264132-89de6fd2-11f8-4e5b-b9dc-8475fa022a5f.png)\n\n[More screenshots.](https://github.com/josecelano/cargo-pretty-test/wiki/cargo%E2%80%90pretty%E2%80%90test-screenshots)\n\n## Usage\n\nInstall:\n\n```console\ncargo install cargo-pretty-test\n```\n\nRun in your project:\n\n```console\ncargo pretty-test\n```\n\nNote: all the arguments passed to `cargo pretty-test` are forwarded to `cargo test`.\n\n---\n\nRun in CI as a summary: [demo](https://github.com/josecelano/cargo-pretty-test/actions/runs/6334295212)\n\n```console\n      - id: pretty-test\n        name: Run cargo pretty-test\n        run: |\n          cargo install cargo-pretty-test\n          cargo pretty-test --color=always\n          echo '```text' \u003e\u003e $GITHUB_STEP_SUMMARY\n          echo \"$(cargo pretty-test --color=never)\" \u003e\u003e $GITHUB_STEP_SUMMARY 2\u003e\u00261\n          echo '```' \u003e\u003e $GITHUB_STEP_SUMMARY\n```\n\n![](https://user-images.githubusercontent.com/25300418/271169701-6efc57fb-9ab3-4842-9599-aa5784001c36.png)\n\nNote: `--color=always` produces texts in color when running CI, and `--color=never`\nstrips ANSI escapes before written to summary.\n\n## Credits\n\n- First commit author [@ZJPzjp](https://github.com/zjp-CN).\n- Idea described on [https://users.rust-lang.org](https://users.rust-lang.org/t/cargo-test-output-with-indentation/100149) by [@josecelano](https://github.com/josecelano).\n\n### Links\n\n- \u003chttps://users.rust-lang.org/t/cargo-test-output-with-indentation/100149\u003e\n- \u003chttps://www.rustexplorer.com/b/i058g3\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosecelano%2Fcargo-pretty-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosecelano%2Fcargo-pretty-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosecelano%2Fcargo-pretty-test/lists"}