Skip to content

Terminating a loading animation with .error() should look the same as .success() but with a red ❌ #57

@DanMacDonald

Description

@DanMacDonald

Describe the bug
Ending the loading animation with .error(...) or .done().error(...) leaves the loading text in the terminal and doesn't replace it like the .success(...) message does.

To Reproduce
Steps to reproduce the behavior:

  1. start a loading animation with logger.loading(format!("{test_name}..."));
  2. end the loading animation with logger.error(format!("{test_name} - {duration:?}"));
  3. Note that you see something like
    image

Expected behavior
I would expect it to format like ending it with success(...)
image
(this is an different test that passed)

*Desktop (please complete the following information):

  • OS: MacOS 12.0.1
  • Browser: Terminal in VSCode

Additional context
running cargo run --release
the test that's failing is a long running test, takes about 30s before it fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions