Skip to content

cs-uche/Testing-Techniques

Repository files navigation

Arithmetic Workflow CI/CD

Cloud-Data-Engineering

Advanced Testing Techniques

This is a submodule for advanced testing

Setup

  1. Create and source Venv
virtualenv ~/.advanced-testing
source ~/.advanced-testing/bin/activate
  1. Create scaffold
touch Makefile
touch hello.py test_hello.py 
touch requirements.txt
  1. Populate Makefile
install:
	pip install --upgrade pip &&\
		pip install -r requirements.txt

test:
	python -m pytest -vv --cov=hello --cov=hellocli test_hello.py

lint:
	pylint --disable=R,C hello.py hellocli.py

all: install lint test

How to debug

  • print
  • pdb
  • testing

Learning about gist

Hey I added a gist check it out