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

At test runs, write to logfile in the same format as to stdout. #1

Draft
wants to merge 1 commit into
base: converge-discovery-logfile
Choose a base branch
from

Commits on Apr 12, 2024

  1. At test runs, write to logfile in the same format as to stdout.

    Example of affected command:
    
    ```
    cargo test -- --logfile=/tmp/1.log
    ```
    
    Old format:
    ```
    ok whatever
    ```
    
    New format:
    ```
    
    running 1 test
    test whatever ... ok
    
    test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
    
    ```
    
    Rationale for the behavior change:
    * The code becomes easier to maintain: we reuse the same code to generate output into stdout and into log file
    * Fix user confusion, as they currently see different formats in stdout and in log file.
    aspotashev committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    346b807 View commit details
    Browse the repository at this point in the history