source: main/waeup.cas/trunk/README.rst @ 10399

Last change on this file since 10399 was 10325, checked in by uli, 11 years ago

More docs.

File size: 968 bytes
Line 
1waeup.cas
2*********
3
4Install for Development
5-----------------------
6
7Create a virtualenv and install basic packages::
8
9  $ virtualenv py27
10  $ source py27/bin/activate
11  (py27)$ python setup.py dev
12
13Running Tests
14-------------
15
16After `Install for Development`_ run::
17
18  (py27)$ py.test
19
20We also provide support for `tox`. You can run tests in Python 2.6,
212.7, 3.1, 3.2, and 3.3 environments (if you have the respective Python
22versions installed locally) simply by::
23
24  (py27)$ pip install tox   # needed only once per virtualenv
25  (py27)$ tox
26
27If you want to run tests for a specific version only, try something
28like::
29
30  (py27)$ tox -e py31
31
32to run tests for Python 3.1 only.
33
34Getting Test-Coverage Reports
35-----------------------------
36
37You can generate coverage reports by::
38
39  (py27)$ py.test --cov
40
41This will dump reports on commandline. For HTML reports you can try::
42
43  (py27)$ py.test --cov --cov-report=html
44
45Please make sure, that coverage stays at 100%.
46
47
Note: See TracBrowser for help on using the repository browser.