Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equivalent of #pragma: no cover #4

Open
MarineChap opened this issue Jan 7, 2021 · 1 comment
Open

Equivalent of #pragma: no cover #4

MarineChap opened this issue Jan 7, 2021 · 1 comment

Comments

@MarineChap
Copy link

Hello,
Thank you for open-sourcing this package. I am testing your tool with some of my code.
Do you have a way to exclude some codes from the test generation step ? Like #pragma: no cover in the coverage python package.

For example my traceback when encountered some numba functions.

numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
cannot determine Numba type of <class 'pynguin.testcase.execution.executiontracer.ExecutionTracer'>

File "fklab/events/basic_algorithms.py", line 671:
def _bsearchi(vector, key):  # pragma: no cover
    <source elided>

    nmemb = len(vector)
    ^

Thank you !

@stephanlukasczyk
Copy link
Member

Currently, there is nothing like this in Pynguin. I am, however, happy to add this to our “things to add” list, which we might add in some future release.

I'll leave this issue open until we have some way of dealing with this—I can, however, not yet estimate a date for such a release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants