[Python] Codecov failing, and I don't understand why

Discussão em 'Python' iniciado por Stack, Julho 21, 2025.

  1. Stack

    Stack Membro Participativo

    I have added a CI using Codecov to ensure that code is suffently covered when PR are done in my code.

    But the job is still failing after the modifications I made. Here is the full report from codecov, where is display a positive change and no red flag.

    Actually, there are some part of the code that are not covered, but they correspond to some very specific cases where we never get at usage (except if we are deeply looking to get there, for instance I manually added a non printable character somewhere to fall in the condition if not_printable(ch): ....

    So my question is : how could I parametrize to coverage program to pass well ? An idea would be to skip that kind of code lines, but I have no idea if it is possible to do it (nor how to do it)

    Continue reading...

Compartilhe esta Página