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.TestRunner Class Reference
+ Collaboration diagram for testing.tools.test_runner.TestRunner:

Public Member Functions

 __init__ (self, dirname)
 
 options (self)
 
 IsSkiaGoldEnabled (self)
 
 IsExecutionSuppressed (self, input_path)
 
 IsResultSuppressed (self, input_filename)
 
 HandleResult (self, test_case, test_result)
 
 Run (self)
 
 SetDeleteOutputOnSuccess (self, new_value)
 
 SetEnforceExpectedImages (self, new_value)
 

Public Attributes

 per_process_config
 
 resultdb = finder.TestingDir(relative_test_dir)
 
 per_process_state = _PerProcessState(self.per_process_config)
 
 test_cases = TestCaseManager()
 
list execution_suppressed_cases = []
 
list failures = []
 
list surprises = []
 
list skia_gold_successes = []
 
list skia_gold_unexpected_successes = []
 
list skia_gold_failures = []
 
list result_suppressed_cases = []
 

Protected Member Functions

 _SuppressStatus (self, input_filename, status)
 
 _SuppressArtifactStatus (self, test_result, status)
 
 _PrintSummary (self)
 

Detailed Description

Definition at line 42 of file test_runner.py.

Constructor & Destructor Documentation

◆ __init__()

testing.tools.test_runner.TestRunner.__init__ ( self,
dirname )

Definition at line 44 of file test_runner.py.

Member Function Documentation

◆ _PrintSummary()

◆ _SuppressArtifactStatus()

testing.tools.test_runner.TestRunner._SuppressArtifactStatus ( self,
test_result,
status )
protected

Definition at line 150 of file test_runner.py.

◆ _SuppressStatus()

testing.tools.test_runner.TestRunner._SuppressStatus ( self,
input_filename,
status )
protected

Definition at line 135 of file test_runner.py.

References testing.tools.suppressor.Suppressor.IsResultSuppressed(), testing.tools.test_runner._TestCaseRunner.IsResultSuppressed(), and testing.tools.test_runner.TestRunner.IsResultSuppressed().

Referenced by testing.tools.test_runner.TestRunner.HandleResult().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleResult()

◆ IsExecutionSuppressed()

testing.tools.test_runner.TestRunner.IsExecutionSuppressed ( self,
input_path )

◆ IsResultSuppressed()

testing.tools.test_runner.TestRunner.IsResultSuppressed ( self,
input_filename )

Definition at line 64 of file test_runner.py.

References testing.tools.test_runner.TestRunner.per_process_state.

Referenced by testing.tools.test_runner._TestCaseRunner._RegenerateIfNeeded(), testing.tools.test_runner.TestRunner._SuppressStatus(), testing.tools.test_runner.TestRunner.HandleResult(), and testing.tools.test_runner._TestCaseRunner.TestText().

+ Here is the caller graph for this function:

◆ IsSkiaGoldEnabled()

testing.tools.test_runner.TestRunner.IsSkiaGoldEnabled ( self)

Definition at line 56 of file test_runner.py.

References ImageWithBindOptions.options, language::SignalSlot.options, PrintOut::Box.options, QAbstractFileIconEngine.options(), QAbstractFileIconProvider.options(), QAbstractFileIconProviderPrivate.options, QAbstractPrintDialogPrivate.options, QAuthenticator.options(), QAuthenticatorPrivate.options, QCocoaIntegration.options(), QColorDialog.options, QColorDialog.options(), QColorDialogOptionsPrivate.options, QColorDialogPrivate.options, QFileDialog.options, QFileDialog.options(), QFileDialogArgs.options, QFileDialogOptions.options(), QFileDialogOptionsPrivate.options, QFileDialogPrivate.options, QFileSystemModel.options, QFileSystemModel.options(), QFontDialog.options, QFontDialog.options(), QFontDialogOptions.options(), QFontDialogOptionsPrivate.options, QFontDialogPrivate.options, QInputDialog.options(), QMdiAreaPrivate.options, QMdiSubWindowPrivate.options, QMessageBox.options, QMessageBox.options(), QMessageBoxPrivate.options, QMessageDialogOptions.options(), QMessageDialogOptionsPrivate.options, QMinimalIntegration.options(), QOpenGLCachedTexture.options(), QPdfPageRendererPrivate::PageRequest.options, QPlatformColorDialogHelper.options(), QPlatformFileDialogHelper.options(), QPlatformFontDialogHelper.options(), QPlatformMessageDialogHelper.options(), QPrintDialog.options, QPrintDialog.options(), QPrintDialogPrivate.options, QQmlJS::Dom::AstDumper.options, QQmlJS::Dom::ConstantData.options(), QQmlJS::Dom::DomEnvironment.options(), QQmlJS::Dom::FormatPartialStatus.options, QQmlJS::Dom::LineWriter.options(), QQnxIntegration.options(), QQuickColorDialog.options, QQuickColorDialog.options(), QQuickColorDialogImpl.options(), QQuickColorDialogImplPrivate.options, QQuickFileDialog.options, QQuickFileDialog.options(), QQuickFileDialogImpl.options(), QQuickFileDialogImplPrivate.options, QQuickFileNameFilter.options(), QQuickFolderDialog.options, QQuickFolderDialog.options(), QQuickFolderDialogImpl.options(), QQuickFolderDialogImplPrivate.options, QQuickFontDialog.options, QQuickFontDialog.options(), QQuickFontDialogImpl.options(), QQuickFontDialogImplPrivate.options, QQuickLabsPlatformColorDialog.options, QQuickLabsPlatformColorDialog.options(), QQuickLabsPlatformFileDialog.options, QQuickLabsPlatformFileDialog.options(), QQuickLabsPlatformFileNameFilter.options(), QQuickLabsPlatformFolderDialog.options, QQuickLabsPlatformFolderDialog.options(), QQuickLabsPlatformFontDialog.options, QQuickLabsPlatformFontDialog.options(), QQuickMessageDialogImpl.options(), QQuickMessageDialogImplPrivate.options, QQuickPixmapKey.options, QSSGBufferManager::MeshData.options, QSSGQmlUtilities::OutputContext.options, QStorageIterator.options(), QSurfaceFormat.options(), QSvgHandler.options(), QSvgRenderer.options, QSvgRenderer.options(), QSvgRendererPrivate.options, QSvgTinyDocument.options(), QSvgWidget.options(), QWaylandKeymap.options, QWaylandKeymap.options(), QWindowsIntegration.options(), QWindowsOpenGLContextFormat.options, QWindowsTabletSupport.options(), QWizard.options, QWizard.options(), testing.tools.test_runner._PerProcessConfig.options, testing.tools.test_runner._PerProcessState.options, testing.tools.test_runner._TestCaseRunner.options(), testing.tools.test_runner.TestRunner.options(), and testing.tools.test_runner.TestRunner.per_process_config.

Referenced by testing.tools.test_runner.TestRunner._PrintSummary().

+ Here is the caller graph for this function:

◆ options()

◆ Run()

testing.tools.test_runner.TestRunner.Run ( self)

Definition at line 159 of file test_runner.py.

References testing.tools.test_runner.TestRunner.per_process_config, and print().

+ Here is the call graph for this function:

◆ SetDeleteOutputOnSuccess()

testing.tools.test_runner.TestRunner.SetDeleteOutputOnSuccess ( self,
new_value )
Set whether to delete generated output if the test passes.

Definition at line 379 of file test_runner.py.

References testing.tools.test_runner.TestRunner.per_process_config.

◆ SetEnforceExpectedImages()

testing.tools.test_runner.TestRunner.SetEnforceExpectedImages ( self,
new_value )
Set whether to enforce that each test case provide an expected image.

Definition at line 383 of file test_runner.py.

References testing.tools.test_runner.TestRunner.per_process_config.

Member Data Documentation

◆ execution_suppressed_cases

testing.tools.test_runner.TestRunner.execution_suppressed_cases = []

Definition at line 270 of file test_runner.py.

Referenced by testing.tools.test_runner.TestRunner._PrintSummary().

◆ failures

list testing.tools.test_runner.TestRunner.failures = []

◆ per_process_config

◆ per_process_state

testing.tools.test_runner.TestRunner.per_process_state = _PerProcessState(self.per_process_config)

◆ result_suppressed_cases

list testing.tools.test_runner.TestRunner.result_suppressed_cases = []

◆ resultdb

testing.tools.test_runner.TestRunner.resultdb = finder.TestingDir(relative_test_dir)

Definition at line 104 of file test_runner.py.

◆ skia_gold_failures

list testing.tools.test_runner.TestRunner.skia_gold_failures = []

◆ skia_gold_successes

list testing.tools.test_runner.TestRunner.skia_gold_successes = []

◆ skia_gold_unexpected_successes

list testing.tools.test_runner.TestRunner.skia_gold_unexpected_successes = []

◆ surprises

list testing.tools.test_runner.TestRunner.surprises = []

◆ test_cases


The documentation for this class was generated from the following file: