Skip to content

Add tests for coverage

4513b43
Select commit
Loading
Failed to load commit list.
Draft

refactor(pytest_plugin): migrate session state to pytest.Stash #985

Add tests for coverage
4513b43
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded May 7, 2026 in 1s

81.85% (target 0.00%)

View this Pull Request on Codecov

81.85% (target 0.00%)

Details

Codecov Report

❌ Patch coverage is 96.55172% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
infrahub_sdk/pytest_plugin/items/check.py 50.00% 1 Missing ⚠️
@@                 Coverage Diff                  @@
##           infrahub-develop     #985      +/-   ##
====================================================
+ Coverage             81.43%   81.85%   +0.42%     
====================================================
  Files                   134      135       +1     
  Lines                 11359    11371      +12     
  Branches               1703     1702       -1     
====================================================
+ Hits                   9250     9308      +58     
+ Misses                 1566     1512      -54     
- Partials                543      551       +8     
Files with missing lines Coverage Δ
infrahub_sdk/pytest_plugin/_stash.py 100.00% <100.00%> (ø)
infrahub_sdk/pytest_plugin/items/base.py 89.18% <100.00%> (+10.81%) ⬆️
infrahub_sdk/pytest_plugin/items/graphql_query.py 70.58% <100.00%> (+22.10%) ⬆️
...frahub_sdk/pytest_plugin/items/jinja2_transform.py 71.01% <100.00%> (+10.72%) ⬆️
...frahub_sdk/pytest_plugin/items/python_transform.py 68.51% <100.00%> (+8.14%) ⬆️
infrahub_sdk/pytest_plugin/loader.py 91.83% <100.00%> (+13.11%) ⬆️
infrahub_sdk/pytest_plugin/plugin.py 84.44% <100.00%> (-0.34%) ⬇️
infrahub_sdk/pytest_plugin/items/check.py 44.68% <50.00%> (+1.20%) ⬆️

... and 3 files with indirect coverage changes

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