Skip to content
Snippets Groups Projects
Commit 0a473686 authored by Christophe Guillon's avatar Christophe Guillon Committed by Cyril Moineau
Browse files

[UnitTest] Make unit tests deterministic with fixed seed

Use the getSeed() method provided by Catch to initialize the
random number generator instead of using the default random device.

This allows to make the tests deterministic when --rng-seed <seed>
option is passed.
Also this allows to report a test failure by specifying the
seed as reported in the test output, which can then be reproduced
with --rng-seed <reported_seed>.
parent aa12de58
No related branches found
No related tags found
2 merge requests!212Version 0.3.0,!166[UnitTest] Make unit tests deterministic with fixed seed
Checking pipeline status
This commit is part of merge request !166. Comments created here will be created in the context of that merge request.
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment