jeffwright13 / pytest-fold

A Pytest plugin to make console output more manageable when there are multiple failed tests
MIT License
12 stars 2 forks source link

Simplified/arranged output tabs. Fixed issue with lastline showing marker in Summary tab. #58

Closed jeffwright13 closed 2 years ago

sourcery-ai[bot] commented 2 years ago

Sourcery Code Quality Report

✅  Merging this PR will increase code quality in the affected files by 2.91%.

Quality metrics Before After Change
Complexity 2.60 ⭐ 2.71 ⭐ 0.11 👎
Method Length 62.85 🙂 57.63 ⭐ -5.22 👍
Working memory 7.54 🙂 6.95 🙂 -0.59 👍
Quality 70.75% 🙂 73.66% 🙂 2.91% 👍
Other metrics Before After Change
Lines 461 460 -1
Changed files Quality Before Quality After Quality Change
pytest_fold/tui_pytermtk.py 65.16% 🙂 73.08% 🙂 7.92% 👍
pytest_fold/utils.py 73.95% 🙂 73.95% 🙂 0.00%

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
pytest_fold/tui_pytermtk.py TkTui.create_test_result_tabs 6 ⭐ 152 😞 9 🙂 58.83% 🙂 Try splitting into smaller methods
pytest_fold/tui_pytermtk.py TkTui.create_section_tabs 0 ⭐ 168 😞 8 🙂 65.39% 🙂 Try splitting into smaller methods
pytest_fold/utils.py Results.__init__ 0 ⭐ 133 😞 8 🙂 69.08% 🙂 Try splitting into smaller methods
pytest_fold/utils.py Results._update_testinfo_category 7 ⭐ 35 ⭐ 10 😞 72.02% 🙂 Extract out complex expressions
pytest_fold/utils.py Results._get_result_by_outcome 2 ⭐ 46 ⭐ 11 😞 73.24% 🙂 Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!