catchorg / Catch2

A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
https://discord.gg/4CWS9zD
Boost Software License 1.0
18.79k stars 3.06k forks source link

Turning off "randomness seeded" #2932

Open igtrnt opened 2 weeks ago

igtrnt commented 2 weeks ago

My tests do not use any random generators bit I still get Randomness seeded to: ####### message. Is there a way to turn off rand-related stuff or silence this message?

JoeyGrajciar commented 1 week ago

I believe that should be in output only when you run tests in random order. For reference check https://github.com/catchorg/Catch2/blob/devel/docs%2Fcommand-line.md

horenmar commented 1 week ago

No, all built-in reporters report it. It guards both the output of random Generators, and shuffle order of tests, so it is important for reproducibility.

Currently the only way to disable the output is to provide your own reporter.