Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-110314

Add QTestRandomNumber that tracks the seed used for reproducability

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • None
    • Testing: qtestlib
    • None

      When using random numbers in tests, the problem is that a test failure isn't easily reproduced, because the random number sequence is either not known or else not easily re-generated.

      Let's add a QTestRandomNumber generator whose seed is recorded and printed on test failures. Optionally, it might also record seeds for RNGs used inside libraries, via some hook mechanism.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            macadder Jason McDonald
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes