Auto-tools/Projects/Mozregression: Difference between revisions

Jump to navigation Jump to search
link to https://github.com/mozilla/mozregression
(link to https://github.com/mozilla/mozregression)
 
Line 18: Line 18:
== How to setup for development ==
== How to setup for development ==


Assuming you have python, git, and virtualenv installed check out the mozregression repository and install it locally inside there. From there, you should be able to modify the code and test your changes. On Linux and MacOS X, this looks like:
See https://github.com/mozilla/mozregression.
 
  virtualenv mozr
  cd mozr
  source bin/activate
  git clone https://github.com/mozilla/mozregression.git mozregression
  cd mozregression
  pip install -e .
 
(Windows instructions should be pretty similar, the only difference should be the activation step)
 
Check style/bad code issues with flake8:
 
  pip install flake8
  flake8 mozregression tests
 
To run unit tests:
 
  pip install mock # not stricly required, but recommended to keep a clean dir
  python setup.py test
 
You could also use the coverage module to view the lines covered by tests:
 
  pip install coverage mock
  coverage run setup.py test
  coverage html # generate html results
  firefox htmlcov/index.html # see them in your favorite browser


== Issue / feature tracking ==
== Issue / feature tracking ==
7

edits

Navigation menu