Skip to content

renadayne/pytest-basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Pytest Basic

Some examples about pytest.

About

Pytest - Python Automation Test Framework help us Unit Testing, Integration Test,...

This repo is some examples and very first knowledge of this framework.

Resources for you to start with Pytest:

Getting Started

When you complete the test.py file, you can run the test by this command:

  • python -m pytest test.py

HTML report with line-by-line coverage example:

  • pytest --cov-report html --cov=gilded_rose .\test_gilded_rose.py

Branch coverage example:

  • pytest --cov-report html --cov . .\test_branches.py Or:
  • pytest --cov-report html --cov . --cov-branch .\test_branches.py

Contact

If you have any concern, please contact me via:

About

Python Automation Test Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages