Changeset - dde759cdde15
[Not reviewed]
default
0 6 1
Branko Majic (branko) - 6 years ago 2017-12-25 19:59:22
branko@majic.rs
CONNT-34: Updated development environment set-up for functional test runs:

- Added instructions for downloading and unpacking Mozilla Firefox and
geckodriver.
- Updated development and testing requirements files.
7 files changed with 45 insertions and 4 deletions:
0 comments (0 inline, 0 general)
.hgignore
Show inline comments
 
@@ -8,3 +8,4 @@ tmp/
 
dist/
 
django_conntrackt.egg-info/
 
projtect/.coverage
 
test_binaries/
 
\ No newline at end of file
MANIFEST.in
Show inline comments
 
@@ -27,4 +27,5 @@ recursive-include conntrackt/templates *
 
recursive-include docs *
 
recursive-include requirements *
 
recursive-exclude * *.py[co]
 
recursive-exclude docs/_build *
 
\ No newline at end of file
 
recursive-exclude docs/_build *
 
recursive-exclude test_binaries *
 
\ No newline at end of file
docs/development.rst
Show inline comments
 
@@ -62,6 +62,40 @@ 4. Install required packages in the virt
 

	
 
     workon conntrackt && pip install -r ~/projects/conntrackt/requirements/development.txt
 

	
 
5. Download and unpack `Mozilla Firefox
 
   <https://www.mozilla.org/en-US/firefox/>`_ version **57.0.x** for
 
   your platform into directory ``test_binaries/``. If using 64-bit
 
   GNU/Linux distribution, this should be as easy as:
 

	
 
   .. warning::
 
      In order to ensure the functional tests run well, it is
 
      important to use correct combination of geckodriver and Mozilla
 
      Firefox.
 

	
 
   ::
 

	
 
      workon conntrackt && \
 
          cd test_binaries/ && \
 
          wget 'https://ftp.mozilla.org/pub/firefox/releases/57.0.2/linux-x86_64/en-US/firefox-57.0.2.tar.bz2' && \
 
          tar xjf firefox-57.0.2.tar.bz2
 

	
 
6. Download `geckodriver
 
   <https://github.com/mozilla/geckodriver/releases>`_ version
 
   **v0.19.1**. If using 64-bit GNU/Linux distribution, this should be
 
   as easy as:
 

	
 
   .. warning::
 
      In order to ensure the functional tests run well, it is
 
      important to use correct combination of geckodriver and Mozilla
 
      Firefox.
 

	
 
   ::
 

	
 
      workon conntrackt && \
 
          cd test_binaries/ && \
 
          wget 'https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz' && \
 
          tar xzf geckodriver-v0.19.1-linux64.tar.gz
 

	
 

	
 
Development/test Django project
 
-------------------------------
requirements/development.in
Show inline comments
 
@@ -32,4 +32,7 @@ mock~=1.3.0
 
sphinx~=1.6.0
 

	
 
# Used for handling of timezones.
 
pytz
 
\ No newline at end of file
 
pytz
 

	
 
# Used for running functional tests.
 
selenium~=3.8.0
 
\ No newline at end of file
requirements/development.txt
Show inline comments
 
@@ -22,11 +22,12 @@ markupsafe==1.0           # via jinja2
 
mock==1.3.0
 
palette==0.2
 
pbr==3.1.1                # via mock
 
pydot==1.2.3
 
pydot==1.2.4
 
pygments==2.2.0           # via sphinx
 
pyparsing==2.2.0          # via pydot
 
pytz==2017.3
 
requests==2.18.4          # via sphinx
 
selenium==3.8.0
 
six==1.11.0               # via mock, sphinx
 
snowballstemmer==1.2.1    # via sphinx
 
sphinx==1.6.5
requirements/test.txt
Show inline comments
 
@@ -22,11 +22,12 @@ markupsafe==1.0           # via jinja2
 
mock==1.3.0
 
palette==0.2
 
pbr==3.1.1                # via mock
 
pydot==1.2.3
 
pydot==1.2.4
 
pygments==2.2.0           # via sphinx
 
pyparsing==2.2.0          # via pydot
 
pytz==2017.3
 
requests==2.18.4          # via sphinx
 
selenium==3.8.0
 
six==1.11.0               # via mock, sphinx
 
snowballstemmer==1.2.1    # via sphinx
 
sphinx==1.6.5
test_binaries/.keep
Show inline comments
 
new file 100644
0 comments (0 inline, 0 general)