This is a repo for doing advanced testing
- Create and source virtualenv
sudo pip install virtualenv
virtualenv ~/.advanced-testing
source ~/.advanced-testing/bin/activate
- Create scaffolded files
touch Makefile && touch test_hello.py && touch hello.py && requirements.txt
- 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
- pdb
- testing