File: README.txt

package info (click to toggle)
python-stetl 2.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 90,156 kB
  • sloc: python: 5,103; xml: 707; sql: 430; makefile: 154; sh: 65
file content (24 lines) | stat: -rw-r--r-- 822 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Testing is done with Python unittest and run with 'nose2',
see http://nose2.readthedocs.io/en/latest/

To install and run with nose2:
pip install nose2

To execute nose2:
nose2 [options]

Coverage plugin:
pip install cov-core

Execution with coverage (from root dir):
nose2 --with-coverage
nose2 --with-coverage -coverage-report html
The test coverage is written to the dir htmlcov.

Mock objects: mock
pip install mock
More information: http://www.voidspace.org.uk/python/mock/

When executing nose2, all directories are scanned for tests. See the nose2 documentation how this is done.
Regarding the coverage: if you specify the tests directory, only the coverage of the unit tests themselves is reported.
If you would like to see coverage for the source files as well, you need to execute nose2 from the Stetl root dir.