Nikita Sobolev 2/25/2020

Conditional coverage

Read Original

The 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.

Conditional coverage

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week