Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Koan colored test outputs #21

Closed
CGMossa opened this issue Mar 22, 2020 · 1 comment
Closed

Koan colored test outputs #21

CGMossa opened this issue Mar 22, 2020 · 1 comment

Comments

@CGMossa
Copy link
Contributor

CGMossa commented Mar 22, 2020

I don't know where this needs to go, but if

fn run_tests(manifest_path: &Path, filter: Option<&str>) -> TestOutcome {
    let mut args: Vec<OsString> = vec![
        "test".into(),
        "--manifest-path".into(),
        manifest_path.into(),
        "-q".into(),
        "--color=always".into()
    ];
...

Then we get colored output. It is not the best ever, but it is something. I don't know where this actually needs to go with this yansi stuff.. So here's the suggestion.

@CGMossa CGMossa changed the title Koan colored tests Koan colored test outputs Mar 22, 2020
@LukeMathWalker
Copy link
Owner

I used yansi to determine dynamically the value of the color flag - now it should return colored output when supported.
Thanks for flagging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants