-
Notifications
You must be signed in to change notification settings - Fork 5
Unit Testing
Louis Viot edited this page Dec 13, 2023
·
10 revisions
Tests should look like the MultiMDServiceTest test. The file should end with the suffix Test.
The total test time of all tests together must be less than 60 seconds.
Tests are compiled with the command make testmamico
in your build directory which, upon success, creates a testmamico
executable.
Tests can be executed in two ways:
- Via
./testmamico nameofthetest
ormpirun -np 4 ./testmamico nameofthetest
- Via
ctest -R nameofthetest
which will use mpirun with 4 ranks if MaMiCo was compiled in parallel mode
Running the same commands without specifying a test will run all MaMiCo's tests
Coverage of the code can be seen via the coverage/index.html
in the build
directory. In order to generate this page, one has to:
- Run cmake with
BUILD_TESTING=ON
,ENABLE_COVERAGE=ON
,DEBUG
mode andgcc
compiler - Build the mamico tests via
make testmamico
- Run the mamico tests (see above)
make coverage
- Vahid: ErrorEstimation, InstanceHandling, MultiMDMediator, services, interfaces
- Amartya:
- Piet: filtering, indexing, ParallelTimeIntegrationService, LBCouetteSolver
- Louis: