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

No console support on Windows #5

Closed
johnthagen opened this issue Feb 6, 2016 · 5 comments
Closed

No console support on Windows #5

johnthagen opened this issue Feb 6, 2016 · 5 comments

Comments

@johnthagen
Copy link
Contributor

When coverage2clover is installed on Windows, it does not create a command line program for execution. I suggest using the entry_points option in setuptools.setup:

    entry_points={
        'console_scripts': [
            'coverage2clover = cppcheck_junit:main',
        ],

rather than:

try:
    copy("bin/coverage2clover.py", "bin/coverage2clover")
except (OSError, IOError):
    pass
@johnthagen
Copy link
Contributor Author

I forked and tried to work on this closer and it looks having cross platform support is more complex than I thought, for example, Linux is shelled out to clover/__init__.py line 80.

@tumb1er
Copy link
Owner

tumb1er commented May 11, 2017

@johnthagen Is it now fixed?

@tumb1er tumb1er closed this as completed May 12, 2017
@tumb1er
Copy link
Owner

tumb1er commented May 12, 2017

fixed in #12

@johnthagen
Copy link
Contributor Author

@tumb1er I just tried out 1.3.0 from PyPI and it seems to work fine on Windows 10 and Python 3.6.

$ pip3 install coverage2clover
Collecting coverage2clover
  Downloading coverage2clover-1.3.0.tar.gz
Installing collected packages: coverage2clover
  Running setup.py install for coverage2clover ... done
Successfully installed coverage2clover-1.3.0

$ coverage2clover --help
Usage: coverage2clover [options]

Options:
  -h, --help            show this help message and exit
  -i FILE, --input-file=FILE
                        read coverage report from FILE
  -o FILE, --output-file=FILE
                        write clover report to FILE

@tumb1er
Copy link
Owner

tumb1er commented May 12, 2017

That's great!

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