Tests

Coverage Requirements

Our goal is 100% coverage in the master branch.

See current coverage report.

Lines of Code

files

language

blank

comment

code

598

JavaScript

21413

11646

120357

5

JSON

2

0

57724

2053

SVG

0

25

50093

397

Python

14042

14843

43294

58

CSS

5233

6264

42433

4

YAML

0

0

23764

357

INI

2798

59

17565

112

Sass

1946

1167

10744

244

HTML

1325

109

10647

19

LESS

518

56

4707

3

Markdown

27

0

66

3850

SUM

47304

34169

381394

Set Up for Testing

Install requirements:

pip install tests/requirements.pip

Running Tests

Tip

You may use the tests target of the Makefile to run tests with coverage:

make tests;

To run unit tests:

python -m pytest;

Run a specific test:

python -m pytest tests/units/path/to/test.py

To allow output from print statements within a test method, add the -s switch:

python -m pytest -s tests/units/path/to/test.py

Reference