Code Monkey home page Code Monkey logo

Comments (6)

coagulant avatar coagulant commented on July 17, 2024

It should work with any plugin based on coverage.py that keeps coverage data after run.
Please let me know if you run into any problems.

from coveralls-python.

pastephens avatar pastephens commented on July 17, 2024

input:
https://github.com/pysal/pysal/blob/master/.travis.yml

output:
https://coveralls.io/builds/59106

from coveralls-python.

woozyking avatar woozyking commented on July 17, 2024

I think you'd have to do nosetests --with-coverage

from coveralls-python.

 avatar commented on July 17, 2024

I've got coveralls to work with nosetests --with-coverage --cover-package=flask_slither However, coveralls reports the % covered across the stack, not just my repo. Even with --cover-package it doesn't work (although travis displays the correct % it would seem). Any advice?

from coveralls-python.

woozyking avatar woozyking commented on July 17, 2024

Make sure you define exclusion rules in your .coveragerc configuration file. Take mine as an example https://github.com/amoa/tidehunter/blob/master/.coveragerc

For full details on what you can do with the configuration, check out the official documentation http://nedbatchelder.com/code/coverage/config.html

The reason why that Travis (or basically command line running your unit tests suite) reports the correct coverage while Coveralls seems to report on more is because Coveralls actually takes all your source file and does a full scan and generates custom report together with what's generated by coverage.py

from coveralls-python.

coagulant avatar coagulant commented on July 17, 2024

Looks like @woozyking is right, and I have included his approach to solving nosetests issue with coveralls into documentation.

I'm closing this issue, because nosetests generally should work.

@pastephens, I'm not sure what's the problem it was in the first place. I've added troubleshooting guide to readme. If you're willing to provide debug output I'll see what I can do.

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.