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

Parameterise ‘coverage’ command name #438

Closed
nedbat opened this issue Oct 25, 2015 · 3 comments
Closed

Parameterise ‘coverage’ command name #438

nedbat opened this issue Oct 25, 2015 · 3 comments
Labels
bug Something isn't working

Comments

@nedbat
Copy link
Owner

nedbat commented Oct 25, 2015

Originally reported by Ben Finney (Bitbucket: bignose, GitHub: bignose)


The Coverage.py command is installed with numerous aliases, but the command name ‘coverage’ is hard-coded throughout. Instead, the command name should be inferred from ‘sys.argv’ when referring to the command which was used to run the program.

Also, on some systems Coverage.py is installed with a different command name than ‘coverage’ (e.g. where ‘coverage’ is too broad and a more specific name is needed). The test suite hard-codes ‘coverage’ throughout; instead, please set this in one place so it can be easily changed.


@nedbat
Copy link
Owner Author

nedbat commented Oct 25, 2015

Original comment by Ben Finney (Bitbucket: bignose, GitHub: bignose)


The pull request https://bitbucket.org/ned/coveragepy/pull-requests/73/parameterise-command-name/ implements this suggestion.

@nedbat
Copy link
Owner Author

nedbat commented Oct 28, 2015

Original comment by Ben Finney (Bitbucket: bignose, GitHub: bignose)


A new pull request https://bitbucket.org/ned/coveragepy/pull-requests/74/parameterise-command-name/ is an alternative implements this suggestion, incorporating Ned's feedback.

@nedbat
Copy link
Owner Author

nedbat commented Nov 14, 2015

Finished in 71f72934bb9f (bb)

@nedbat nedbat closed this as completed Nov 14, 2015
@nedbat nedbat added major bug Something isn't working labels Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant