You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
Failing to execute pytest or other binary commands with gflags #43
I'm using gflags for accepting command line arguments in one of the script recently added in application. There are unit testcases in the application that I execute using pytest library. Unit test execution was working fine till the time GFLAGS library was not sys path. After adding gflags, the command line arguments provided to pytest or py.test or any other command in interpreted/interrupted by the GFlags and it ultimately throw back the following error.
python_gflags-2.0-py2.6.egg/gflags.py:1319: in call
raise UnrecognizedFlagError(opt, value)
E UnrecognizedFlagError: Unknown command line flag 'cov-config'
Command I'm executing is mentioned below. Is there any way to disable/force gflags to ignore such commands?
py.test --cov-config .coveragerc --cov-report html --cov=.
Activity
jhagege commentedon Mar 13, 2019
Did you find a solution ?
girishsv1986 commentedon Mar 13, 2019
No, didn't got any solution, yet to look into library code and how it can be skipped or ignored
jhagege commentedon Mar 16, 2019
Thanks