GithubHelp home page GithubHelp logo

Comments (4)

coagulant avatar coagulant commented on May 20, 2024

I'm not familiar with this kind of coverage files.
If anyone is willing to submit a patch with tests, I'll merge it right away.

from coveralls-python.

jessamynsmith avatar jessamynsmith commented on May 20, 2024

I don't know what version of coverage this was, but I think this issue is stale at this point. Coverage 3.x and 4.x both create .coverage files.

from coveralls-python.

coagulant avatar coagulant commented on May 20, 2024

@jessamynsmith good point.

Closing this. Feel free to reopen, if one provides a case when we need to parse more files than we do now.

from coveralls-python.

radiac avatar radiac commented on May 20, 2024

I think this occurs when coverage is called with the -p option - that will create coverage files with unique suffixes so you can combine them later (see coverage docs).

Perhaps I was missing something obvious, but I ran into this when trying to have tox locally combine coverage across multiple environments (using coverage 4.0a5), but still wanting coveralls to find them all when run on travis ci. I found though that you can achieve the same thing by removing the -p option and manually specifying the suffix with an env var in the tox base environment:

[testenv]
setenv = COVERAGE_FILE=.coverage.{envname}
...

Because coveralls uses coverage to find the file, as long as it's run in the same env that generates the coverage report, it will also respect the env var and find the file in a travis instance. When run locally, the coverage files will still have unique names, so can be combined later with coverage combine. For a more detailed example, my working tox.ini is here.

Since this issue has so little activity, either I'm doing something wrong, or this seems to be fairly uncommon usage - either way it doesn't seem worth reopening and modifying code, but perhaps this comment will help others.

from coveralls-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.