Skip to content

refactor: read diff format configuration only once per test run#27

Merged
haraldmaida merged 1 commit into
mainfrom
refactor/read-colored-configuration-only-once-per-testrun
Apr 26, 2025
Merged

refactor: read diff format configuration only once per test run#27
haraldmaida merged 1 commit into
mainfrom
refactor/read-colored-configuration-only-once-per-testrun

Conversation

@haraldmaida
Copy link
Copy Markdown
Member

Currently the diff format configuration for colored assertion failures is read from the environment variables once for each test case. This is not necessary. Reading the configuration once per test run is sufficient.

Refactored the assert_that function to read the configuration for the colored mode only once per test run.

@haraldmaida haraldmaida added the enhancement New feature or request label Apr 26, 2025
@haraldmaida haraldmaida self-assigned this Apr 26, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.01%. Comparing base (e6b0182) to head (2a3ca88).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #27   +/-   ##
=======================================
  Coverage   94.01%   94.01%           
=======================================
  Files          24       24           
  Lines        2322     2323    +1     
  Branches     2322     2323    +1     
=======================================
+ Hits         2183     2184    +1     
  Misses        133      133           
  Partials        6        6           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@haraldmaida haraldmaida merged commit 67abdcc into main Apr 26, 2025
18 checks passed
@haraldmaida haraldmaida deleted the refactor/read-colored-configuration-only-once-per-testrun branch April 26, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant