Skip to content

codecov working as expected ? #21

Closed

Description

@touilleMan

Looking for code coverage report, it seems top level code isn't considered as covered.

@njsmith I have no experience with codecov (I use coverall on my personal projects), is there something I've missed ?

Activity

  1. touilleMan commented on Dec 15, 2017

    @touilleMan
    MemberAuthor

    I've reproduce this on local, so it's not codecov's fault but on coverage/pytest-cov side.

  2. njsmith commented on Dec 15, 2017

    @njsmith
    Member

    Does the pytester plugin run subprocesses? It could be that they're all writing coverage information into the same file, and overwriting each other...

    If that's it, then the solution is to add parallel = True to the .coveragerc, and then run coverage combine between running the tests and uploading to pypi. Trio does this, so you can check its .coveragerc, .appveyor.yml, ci/travis.sh to see the details.

  3. touilleMan commented on Dec 15, 2017

    @touilleMan
    MemberAuthor

    I've got the trouble: we are testing a pytest plugin (i.e. pytest-trio) with pytest, using another pytest plugin (pytest-cov) so coverage work is started after pytest-trio is loaded.
    The solution is to start the coverage before pytest-trio is loaded, so before pytest is called:

    $ coverage -m pytest
    
  4. njsmith commented on Dec 15, 2017

    @njsmith
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions