GithubHelp home page GithubHelp logo

archived-codacy / python-codacy-coverage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rshipp/python-codacycov

45.0 45.0 38.0 83 KB

DEPRECATED Python coverage reporter for Codacy

License: BSD 3-Clause "New" or "Revised" License

Python 72.19% Smarty 27.81%

python-codacy-coverage's People

Contributors

anentropic avatar caxaria avatar danielkoster avatar iceflowre avatar jkrukoff avatar lolgab avatar machadoit avatar mathebox avatar mrfyda avatar nmohoric avatar pcmanticore avatar pedrorijo91 avatar philippwendler avatar rshipp avatar rtfpessoa avatar spresse1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-codacy-coverage's Issues

TypeError: cannot concatenate 'str' and 'list' objects

$ python-codacy-coverage -r target/coverage.xml
Traceback (most recent call last):
  File "/VENV/bin/python-codacy-coverage", line 11, in <module>
    sys.exit(main())
  File "/VENV/lib/python2.7/site-packages/codacy/__init__.py", line 6, in main
    return reporter.run()
  File "/VENV/lib/python2.7/site-packages/codacy/reporter.py", line 189, in run
    logging.error("Coverage report " + args.report + " not found.")
TypeError: cannot concatenate 'str' and 'list' objects

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.codacy.com/2.0/coverage/286d0333e55e621d142c3fa29b567ce51c1aa053/python

Are you looking for help?

This is an issue tracker, used to manage and track the development of this Codacy project.

It is not a platform support system. If think your problem is related with our platform at https://www.codacy.com/, please contact us through our contact form or our internal chat application, visible after you login on the bottom right corner.

Keep in mind that this issue tracker is for specific problems of this project.

Python Version

3.7.5

Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)

Ubuntu 19.10

Use uname -a if on Linux.

Linux sky-hole 5.3.0-1008-gcp #9-Ubuntu SMP Mon Nov 11 09:52:23 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Library Dependencies

If this is an issue that involves integration with another system, include the exact version and OS of the other system, including any intermediate drivers or APIs i.e. if you connect to a PostgreSQL database, include both the version / OS of PostgreSQL and the JDBC driver version used to connect to the database.

Expected Behavior

Please describe the expected behavior of the issue, starting from the first action.

Actual Behavior

B9F77D19-7D9D-4415-8187-5B8212AFF734

Please provide a description of what actually happens, working from the same starting point.

Be descriptive: "it doesn't work" does not describe what the behavior actually is -- instead, say "when sending the coverage with the command (...) it returns the output error (...)"

Reproducible Test Case

Please provide a some information on how to reproduce the bug. A PR with a failing test would be awesome, if possible.

If the issue is more complex or requires configuration, please provide a link to a project on Github/Codacy that reproduces the issue.

Python3 support for coverage submitter tool

I'm running the python-codacy-coverage -r coverage.xml from a python3 environment and it fails with the messages:

DEBUG - b'{"error":"could not get json body."}'

If I run the exact command, same coverage.xml from a python2 environment is submits fine (doesn't matter the branch I'm on)

would be great if I could use your reporter with python3, as our build machine is only running python3.

Make it possible to publish aggregated results from different languages (e.g. python + javascript)

Right now codacy is allowing only to publish a signel result for a single languages.

This limit the adoption of codacy in place of coveralls for example where one is able to publish an aggregated results for multiple languages.

Issue noticed while evaluating the adoption of codacy for GlobaLeaks:
image

In globaleaks for example we are using coverage for collecting python coverage and istanbul for collecting javascript coverage and we mesh them up in json format before sending them to coveralls

Codacy doesn't display coverage for successfully sent report

Are you looking for help?

Maybe this is a bug. My Travis CI is in here.

Everytime when it run, it will send a report file coverage.xml successfully. Here is an example.

However, Codacy doesn't display coverage for successfully sent report in here.

image

As we can see, only one report displayed successfully.

Python Version

  • Python3.6
  • Python3.7
  • Python3.8

Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)

  • Ubuntu
  • Windows 10

Expected Behavior

Codacy display coverage information in here.

  1. coverage run -m unittest discover
  2. coverage xml --include=ontology/* --omit=tests/*
  3. python-codacy-coverage -r coverage.xml

Actual Behavior

Codacy doesn't display coverage for successfully sent report.

$ python-codacy-coverage -r coverage.xml
INFO - Parsing report file coverage.xml...
INFO - Uploading report...
INFO - Coverage received successfully.

Reproducible Test Case

Maybe you can clone my project in here.

Then, run make coverage.

Tox py350 runs python3.6.x

On my system and I think in general, tox runs whatever 3.x version of python you have if the version you have is not 3.5.

When I change py350 to py35, it properly fails with an InterpreterNotFound. Is py350 even a thing? I looked in the tox docs and all I could see was {py27,...,py33,py34,py35,py36} nowhere I see definition with a trailing zero.

There is also this issue.
Talking about installing python3.5 yourself because tox doen not install it for you.

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.