Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
testing.tools.test_runner Namespace Reference

Classes

class  _PerProcessConfig
 
class  _PerProcessState
 
class  _TestCaseRunner
 
class  ImageArtifact
 
class  TestCase
 
class  TestCaseManager
 
class  TestResult
 
class  TestRunner
 

Functions

 _RunTextTest (test_case)
 
 _RunPixelTest (test_case)
 
 _InitializePerProcessState (config)
 
 _GetTestId (input_basename)
 
 _GetArtifactFromFilePath (file_path)
 

Variables

str TEST_SEED_TIME = '1399672130'
 
list TEXT_TESTS = ['javascript']
 
 TEST_TIMEOUT = timedelta(minutes=5).total_seconds()
 
 _per_process_state = None
 

Function Documentation

◆ _GetArtifactFromFilePath()

testing.tools.test_runner._GetArtifactFromFilePath ( file_path)
protected
Constructs a ResultSink artifact from a file path.

Definition at line 935 of file test_runner.py.

Referenced by testing.tools.test_runner.ImageArtifact.GetDiffArtifacts().

+ Here is the caller graph for this function:

◆ _GetTestId()

testing.tools.test_runner._GetTestId ( input_basename)
protected
Constructs a test ID by stripping the last extension from the basename.

Definition at line 930 of file test_runner.py.

Referenced by testing.tools.test_runner.TestCaseManager.NewTestCase().

+ Here is the caller graph for this function:

◆ _InitializePerProcessState()

testing.tools.test_runner._InitializePerProcessState ( config)
protected
Initializes the `_per_process_state` singleton.

Definition at line 412 of file test_runner.py.

◆ _RunPixelTest()

testing.tools.test_runner._RunPixelTest ( test_case)
protected
Runs a pixel test case.

Definition at line 397 of file test_runner.py.

◆ _RunTextTest()

testing.tools.test_runner._RunTextTest ( test_case)
protected
Runs a text test case.

Definition at line 388 of file test_runner.py.

Variable Documentation

◆ _per_process_state

testing.tools.test_runner._per_process_state = None
protected

Definition at line 409 of file test_runner.py.

◆ TEST_SEED_TIME

str testing.tools.test_runner.TEST_SEED_TIME = '1399672130'

Definition at line 31 of file test_runner.py.

◆ TEST_TIMEOUT

testing.tools.test_runner.TEST_TIMEOUT = timedelta(minutes=5).total_seconds()

Definition at line 39 of file test_runner.py.

◆ TEXT_TESTS

list testing.tools.test_runner.TEXT_TESTS = ['javascript']

Definition at line 34 of file test_runner.py.