QA/Execution/Web Testing/Automation/Virtual Environments

From MozillaWiki
< QA‎ | Execution‎ | Web Testing‎ | Automation
Revision as of 12:48, 25 January 2012 by Davehunt (talk | contribs) (Created page with "Virtual environments are isolated Python environments. They allow freedom to install specific versions of dependencies without affecting the global site-packages. They also make ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Virtual environments are isolated Python environments. They allow freedom to install specific versions of dependencies without affecting the global site-packages. They also make it easy to throw away a 'broken' environment and start again. If you need further information regarding virtual environments, please see the virtualenvwrapper documentation.

Install virtualenvwrapper

  1. Install virtualenvwrapper:
  2. sudo pip install virtualenvwrapper
  3. Add the following to your ~/.bash_profile:
  4. export WORKON_HOME=$HOME/.virtualenvs source /usr/local/bin/virtualenvwrapper.sh

Create a virtual environment for WebQA

   mkvirtualenv webqa

Switch to the WebQA virtual environment

   workon webqa