236
by Facundo Batista
Tests instructions. |
1 |
How to run the tests in the project |
2 |
=================================== |
|
3 |
||
4 |
Read this if you're a developer of the project and want to know how |
|
5 |
to run the tests. |
|
6 |
||
7 |
||
269
by Facundo Batista
Better instructions for install and run tests. |
8 |
If you still didn't downloaded the code |
9 |
--------------------------------------- |
|
10 |
||
11 |
Just branch it and get there: |
|
12 |
||
13 |
bzr branch lp:encuentro new-branch-name |
|
14 |
cd new-branch-name |
|
15 |
||
16 |
||
236
by Facundo Batista
Tests instructions. |
17 |
Dependencies |
18 |
------------ |
|
19 |
||
20 |
We're in a mixed state of Py2 and Py3 right now, and virtualenv is not |
|
21 |
good for this, so or you install the dependencies in your system, or |
|
22 |
just use two virtualenvs. |
|
23 |
||
24 |
Of course, you'll need Python2 and Python3. Qt is needed only for Python2. |
|
25 |
||
26 |
Then, a bunch of dependencies automatically handled by pip: |
|
27 |
||
28 |
pip install -r requirements_py2.txt |
|
29 |
pip3 install -r requirements_py3.txt |
|
30 |
||
31 |
Again, do that with sudo in all your system, or separatedly in different |
|
32 |
virtualenvs. |
|
33 |
||
34 |
Finally, flake8 and pylint are needed for static code analysis. |
|
35 |
||
36 |
||
37 |
Running the tests |
|
38 |
----------------- |
|
39 |
||
40 |
If you have all installed in the system, just do: |
|
41 |
||
42 |
./test |
|
43 |
||
44 |
Otherwise just execute all what it does, but separately in different environments. |
|
45 |
||
46 |
||
47 |
Note: In Ubuntu Trusty using nosetests3 failed to me when having it |
|
48 |
configured with with-progressive option, this fixed that: |
|
49 |
||
50 |
https://github.com/nose-devs/nose/pull/811/files |