Skip to content

ritwikamukherjee/advanced-testing-techniques

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

advanced-testing-techniques

This is a repo for doing advanced testing

Setup Project

  1. Create and source virtualenv
sudo pip install virtualenv
virtualenv ~/.advanced-testing
source ~/.advanced-testing/bin/activate
  1. Create scaffolded files
touch Makefile && touch test_hello.py && touch hello.py && 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

About

This is a repo for doing advanced testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published