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

Add support for color output #43

Merged
merged 2 commits into from
Sep 15, 2024
Merged

Add support for color output #43

merged 2 commits into from
Sep 15, 2024

Conversation

awvwgk
Copy link
Member

@awvwgk awvwgk commented Sep 8, 2024

  • color output is controlled by protected derived type instance (no change in calling interface)
  • uninitialized color output results in no color
  • color output can be triggered on the user side by calling initializer (can be called multiple times)

Closes #13
Closes #12

Copy link

codecov bot commented Sep 8, 2024

Codecov Report

Attention: Patch coverage is 71.64179% with 19 lines in your changes missing coverage. Please review.

Project coverage is 69.02%. Comparing base (a78870c) to head (8188210).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
src/testdrive.F90 71.64% 1 Missing and 18 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
- Coverage   71.51%   69.02%   -2.50%     
==========================================
  Files           2        2              
  Lines         481      594     +113     
  Branches      296      296              
==========================================
+ Hits          344      410      +66     
- Misses         23       29       +6     
- Partials      114      155      +41     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@awvwgk
Copy link
Member Author

awvwgk commented Sep 8, 2024

Example output:

image

Copy link
Member

@jvdp1 jvdp1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I tested it in my different projects, and it works as expected. Thank you.

src/testdrive.F90 Outdated Show resolved Hide resolved
Co-authored-by: Jeremie Vandenplas <[email protected]>
@awvwgk awvwgk merged commit e8b7ca4 into fortran-lang:main Sep 15, 2024
11 of 12 checks passed
@awvwgk awvwgk deleted the color branch September 15, 2024 09:55
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

Successfully merging this pull request may close these issues.

use color to highlight pass/fail
2 participants