Closed josecelano closed 11 months ago
When I run the tests on my machine, the Golden Master Test fails:
$ cargo test --tests --benches --examples --workspace --exclude integration --all-targets --all-features Finished test [unoptimized + debuginfo] target(s) in 0.00s Running unittests src/lib.rs (target/debug/deps/cargo_pretty_test-d15070510df45ad0) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/main.rs (target/debug/deps/cargo_pretty_test-eae148dcbc8e08de) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/golden_master_test.rs (target/debug/deps/golden_master_test-bf428d227c4b471f) running 1 test test golden_master_test ... FAILED failures: ---- golden_master_test stdout ---- thread 'golden_master_test' panicked at tests/golden_master_test.rs:47:5: assertion `left == right` failed left: "test\n└── e2e\n └── web\n └── api\n └── v1\n └── contexts\n ├── category\n │ └── contract\n │ ├─ ✅ it_should_allow_admins_to_delete_categories\n │ ├─ ✅ it_should_not_allow_adding_duplicated_categories\n │ └─ ✅ it_should_not_allow_non_admins_to_delete_categories\n ├── tag\n │ └── contract\n │ ├─ ❌ \u{1b}[1;31mit_should_allow_admins_to_delete_tags\u{1b}[0m\n │ ├─ ✅ it_should_not_allow_adding_a_tag_with_an_empty_name\n │ ├─ ✅ it_should_not_allow_adding_duplicated_tags\n │ ├─ ✅ it_should_not_allow_guests_to_delete_tags\n │ └─ ✅ it_should_not_allow_non_admins_to_delete_tags\n └── user\n └── contract\n └── banned_user_list\n ├─ ✅ it_should_allow_an_admin_to_ban_a_user\n └─ ✅ it_should_not_allow_a_non_admin_to_ban_a_user\n" right: "test\n└── e2e\n └── web\n └── api\n └── v1\n └── contexts\n ├── category\n │ └── contract\n │ ├─ ✅ it_should_allow_admins_to_delete_categories\n │ ├─ ✅ it_should_not_allow_adding_duplicated_categories\n │ └─ ✅ it_should_not_allow_non_admins_to_delete_categories\n ├── tag\n │ └── contract\n │ ├─ ❌ it_should_allow_admins_to_delete_tags\n │ ├─ ✅ it_should_not_allow_adding_a_tag_with_an_empty_name\n │ ├─ ✅ it_should_not_allow_adding_duplicated_tags\n │ ├─ ✅ it_should_not_allow_guests_to_delete_tags\n │ └─ ✅ it_should_not_allow_non_admins_to_delete_tags\n └── user\n └── contract\n └── banned_user_list\n ├─ ✅ it_should_allow_an_admin_to_ban_a_user\n └─ ✅ it_should_not_allow_a_non_admin_to_ban_a_user\n" note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace failures: golden_master_test test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s error: test failed, to rerun pass `-p cargo-pretty-test --test golden_master_test`
There are some chars after the cross icon " \u{1b}[1;31"
When I run the tests on my machine, the Golden Master Test fails:
There are some chars after the cross icon " \u{1b}[1;31"