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

Add QTestRandomNumber that tracks the seed used for reproducability

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

              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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes