0 6 1
default
Branko Majic (branko) - 2 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:
↑ Collapse Diff ↑
...
 
@@ -8,3 +8,4 @@ tmp/
8 8
 
dist/
9 9
 
django_conntrackt.egg-info/
10 10
 
projtect/.coverage
11
 
test_binaries/
...
 
 No newline at end of file
...
 
@@ -27,4 +27,5 @@ recursive-include conntrackt/templates *
27 27
 
recursive-include docs *
28 28
 
recursive-include requirements *
29 29
 
recursive-exclude * *.py[co]
30
 
recursive-exclude docs/_build *
...
 
 No newline at end of file
30
 
recursive-exclude docs/_build *
31
 
recursive-exclude test_binaries *
...
 
 No newline at end of file
...
 
@@ -62,6 +62,40 @@ 4. Install required packages in the virt
62 62
 

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

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

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

	
75
 
   ::
76
 

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

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

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

	
92
 
   ::
93
 

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

	
65 99
 

	
66 100
 
Development/test Django project
67 101
 
-------------------------------
...
 
@@ -32,4 +32,7 @@ mock~=1.3.0
32 32
 
sphinx~=1.6.0
33 33
 

	
34 34
 
# Used for handling of timezones.
35
 
pytz
...
 
 No newline at end of file
35
 
pytz
36
 

	
37
 
# Used for running functional tests.
38
 
selenium~=3.8.0
...
 
 No newline at end of file
...
 
@@ -22,11 +22,12 @@ markupsafe==1.0           # via jinja2
22 22
 
mock==1.3.0
23 23
 
palette==0.2
24 24
 
pbr==3.1.1                # via mock
25
 
pydot==1.2.3
25
 
pydot==1.2.4
26 26
 
pygments==2.2.0           # via sphinx
27 27
 
pyparsing==2.2.0          # via pydot
28 28
 
pytz==2017.3
29 29
 
requests==2.18.4          # via sphinx
30
 
selenium==3.8.0
30 31
 
six==1.11.0               # via mock, sphinx
31 32
 
snowballstemmer==1.2.1    # via sphinx
32 33
 
sphinx==1.6.5
...
 
@@ -22,11 +22,12 @@ markupsafe==1.0           # via jinja2
22 22
 
mock==1.3.0
23 23
 
palette==0.2
24 24
 
pbr==3.1.1                # via mock
25
 
pydot==1.2.3
25
 
pydot==1.2.4
26 26
 
pygments==2.2.0           # via sphinx
27 27
 
pyparsing==2.2.0          # via pydot
28 28
 
pytz==2017.3
29 29
 
requests==2.18.4          # via sphinx
30
 
selenium==3.8.0
30 31
 
six==1.11.0               # via mock, sphinx
31 32
 
snowballstemmer==1.2.1    # via sphinx
32 33
 
sphinx==1.6.5
 
new file 100644
0 comments (0 inline, 0 general)