question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve test coverage

See original GitHub issue

Our latest coverage report shows:

Name                                    Stmts   Miss  Cover
-----------------------------------------------------------
impedance\__init__.py                       0      0   100%
impedance\models\__init__.py                0      0   100%
impedance\models\circuits\__init__.py       1      0   100%
impedance\models\circuits\circuits.py     183     15    92%
impedance\models\circuits\elements.py      81      1    99%
impedance\models\circuits\fitting.py      126      3    98%
impedance\preprocessing.py                154     21    86%
impedance\validation.py                    58     30    48%
impedance\visualization.py                 89      0   100%
-----------------------------------------------------------
TOTAL                                     692     70    90%
----------------------------------------------------------------------

I’ll be tackling coverage in validation before I close out #69. Tt would be great to capture the loose ends in circuits, elements and fitting, and improve preprocessing. Can we make it to 100% before v1.0?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mdmurbachcommented, Mar 16, 2020

Yeah, I definitely think it’s doable and a good goal! @dacb would be proud 😃

I’ll start by setting up pytest so that we aren’t including the tests/ directory (should be an easy fix that I’ve been meaning to do for a while now) and then I can start with the circuits module

0reactions
BGerwecommented, Apr 24, 2020

@vwhu is a hero and came through with the data file! This coverage report is a beautiful sight!

Name                                    Stmts   Miss  Cover
-----------------------------------------------------------
impedance/__init__.py                       0      0   100%
impedance/models/__init__.py                0      0   100%
impedance/models/circuits/__init__.py       1      0   100%
impedance/models/circuits/circuits.py     193      0   100%
impedance/models/circuits/elements.py      86      0   100%
impedance/models/circuits/fitting.py      126      0   100%
impedance/preprocessing.py                163      0   100%
impedance/validation.py                    94      0   100%
impedance/visualization.py                 89      0   100%
-----------------------------------------------------------
TOTAL                                     752      0   100%
Read more comments on GitHub >

github_iconTop Results From Across the Web

4 Steps to Improve Your Test Coverage | SmartBear
4 Steps to Improve Your Test Coverage · What is Test Coverage? · #1 Create a Plan and Set a Goal · #2...
Read more >
How to Improve Test Coverage in Software Development - Mabl
Test coverage tips and techniques · Plan for success · Gather actionable data · Define goals · Gradually increase coverage · Embrace automation....
Read more >
How to increase Test Coverage for Mobile and Web Apps
How to improve Test Coverage? · 1. Use Automation Tools and Frameworks · 2. Prepare a Concrete Strategy · 3. Leverage Cloud Platforms...
Read more >
Improving Test Coverage - Semantic Designs
The usual way to increase covered code answer is "code more tests" that exercise additional code. To minimize test coding effort, you want...
Read more >
How To Increase Test Coverage | Software Testing - QA Touch
Specification-based test coverage can be achieved with the help of equivalence partitioning, classification tree, boundary value analysis, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found