numirias / pytest-json-report

🗒️ A pytest plugin to report test results as JSON
MIT License
147 stars 39 forks source link

unrecognized arguments: --json-report-no-logs #25

Closed ivanli1990 closed 5 years ago

ivanli1990 commented 5 years ago

image --json-report-no-logs arguments is not valid: pytest -m 'qrcodeserver' --json-report --json-report-no-logs --json-report-file=report.json usage: pytest [options] [file_or_dir] [file_or_dir] [...] pytest: error: unrecognized arguments: --json-report-no-logs inifile: /Users/ivanli/Documents/mt/fromGit/qa/pyrig/pytest.ini rootdir: /Users/ivanli/Documents/mt/fromGit/qa/pyrig

numirias commented 5 years ago

Thanks for raising. It's implemented but not released on PyPI yet. I'm going to take care of that ASAP.

numirias commented 5 years ago

I just published a new version to PyPI. Please note that some of the options have been renamed. You can now use --json-report-omit with a space-separated list of sections to omit from the report. To suppress log captures, you can simply use --json-report-omit log.