Skip to content

Coverage file wouldn't created. #163

@ChehST

Description

@ChehST

I've tried add comment covarege but no comment with report was generated. At workflow debugger i've find this output...

Run pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=app Parser/tests/ | tee pytest-coverage.txt
  
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --cov-report=term-missing:skip-covered --cov=app
  inifile: /home/runner/work/CI-CD-pipeline/CI-CD-pipeline/Parser/pytest.ini
  rootdir: /home/runner/work/CI-CD-pipeline/CI-CD-pipeline/Parser

I've try run pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=app Parser/tests/ | tee pytest-coverage.txt
and catch some errors. With these commands file wouldn't create! And it will influence on next steps

I mean that README description is misleading users to use pytest with incorrect arguments

pytest==8.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions