Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 931 Bytes

README.md

File metadata and controls

44 lines (33 loc) · 931 Bytes

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