Conditional coverage
Read OriginalThe article discusses a real-world problem encountered while updating a Python linter for Python 3.8 compatibility. It details the difficulty of achieving 100% test coverage when code contains environment-based logic (like version checks) and critiques common workarounds like `# pragma: no cover`. It argues for better solutions to test integration and compatibility code thoroughly.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser