Skip to content

Dunganh98/pytest_learning

Repository files navigation

Python application test with Github Actions

pytest_learning

Small demo project for learning pytest basics. It includes two simple functions in hello.py and matching tests in test_hello.py.

Setup

  • Python 3.11+ recommended.
  • Install dependencies:
    • make install
    • or pip install -r requirements.txt

Available commands

  • Run tests: make test (runs pytest -vv)
  • Lint: make lint (runs pylint on hello.py)
  • Format: make format (runs black)
  • Do everything: make all

Running pytest manually

  • python -m pytest -vv to run the suite.
  • Add --cov=. --cov-report=term-missing if you want quick coverage info.

Project structure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors