Radiation-Transport / iWW-GVR

A tool to manipulate MCNP weight window (WW) and to generate Global Variance Reduction (GVR) parameters
Other
7 stars 7 forks source link

Init testing #10

Closed dvp2015 closed 3 years ago

dvp2015 commented 3 years ago

Introduced infrastructure of testing and code coverage with intention to minimize changes in build scripts.

Usage:

The latter generates coverage report in the subfolder htmlcov. See htmlcov/index.html. So far, just 6% of coverage is achieved. Besides, one issue (SegFault on matplotlib destroy) appeared on the two last tests. Even on plain reading of the file.

The test dependencies and command are also included to setup.py. But, be aware, its usage is deprecated. However, you can run also

python setup.py test