Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.62 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.62 KB

Tests

This folder contains regression and integrations tests used to develop TEB. All tests are based on data from the CAPITOUL experiment.

An integration test is run at every commit through continuous integration (CI) to check that code changes do not impact the results. However, when bug fixes / code improvements are implemented, results will change and equality from the previous version can no longer be expected. In such case, the PR or commit message will report details about these changes. In the event of major changes, a small test should also be implemented in tests/test.py so that such differences can be easily reproduced locally.

The self-contained tests that have been implemented to this date are:

Make v CMake

Compares change in build system from Perl/Make to CMake/Make on Linux and Debug mode only. The test passes with no discernable differences.

# Only available in Debug mode and for Linux only.
python tests/test.py --build_type=Debug --case=make_cmake

Psychrometric functions

Compares changes due to bug fixes in the psychrometric functions used by DXCOIL. Changes are as expected given the fixes.

python tests/test.py --build_type=Debug --case=psychrometrics
python tests/test.py --build_type=Release --case=psychrometrics

MinimalDX

Compares changes due to a new DX cooling coil as implemented in the MinimalDX library. Changes are large as expected given the different type of coil used and improvements in the calculations.

python tests/test.py --build_type=Debug --case=minimal_dx
python tests/test.py --build_type=Release --case=minimal_dx