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
 
 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()

testing.tools.test_runner.TestRunner._PrintSummary ( self)
protected

Definition at line 350 of file test_runner.py.

References execution_suppressed_cases, failures, IsSkiaGoldEnabled(), per_process_state, print(), result_suppressed_cases, skia_gold_failures, skia_gold_successes, skia_gold_unexpected_successes, sum, surprises, testing.tools.safetynet_compare.CompareRun.test_cases, and test_cases.

+ Here is the call graph for this function:

◆ _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(), and IsResultSuppressed().

Referenced by HandleResult().

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

◆ HandleResult()

testing.tools.test_runner.TestRunner.HandleResult ( self,
test_case,
test_result )

Definition at line 68 of file test_runner.py.

References _SuppressStatus(), append(), failures, testing.tools.suppressor.Suppressor.IsResultSuppressed(), IsResultSuppressed(), print(), result_suppressed_cases, skia_gold_failures, skia_gold_successes, skia_gold_unexpected_successes, and surprises.

+ Here is the call graph for this function:

◆ IsExecutionSuppressed()

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

Definition at line 60 of file test_runner.py.

References per_process_state.

◆ IsResultSuppressed()

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

Definition at line 64 of file test_runner.py.

References per_process_state.

Referenced by testing.tools.test_runner._TestCaseRunner._RegenerateIfNeeded(), _SuppressStatus(), 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, 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, options(), and per_process_config.

Referenced by _PrintSummary().

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

◆ options()

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

Definition at line 53 of file test_runner.py.

References per_process_config.

Referenced by testing.tools.test_runner._TestCaseRunner._NewImageArtifact(), testing.tools.test_runner._TestCaseRunner._RegenerateIfNeeded(), IsSkiaGoldEnabled(), testing.tools.test_runner._TestCaseRunner.TestPixel(), and testing.tools.test_runner._TestCaseRunner.TestText().

+ Here is the caller graph for this function:

◆ Run()

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

Definition at line 159 of file test_runner.py.

References 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 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 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 _PrintSummary().

◆ failures

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

Definition at line 294 of file test_runner.py.

Referenced by _PrintSummary(), and HandleResult().

◆ per_process_config

testing.tools.test_runner.TestRunner.per_process_config
Initial value:
= _PerProcessConfig(
test_dir=dirname, test_type=dirname)

Definition at line 49 of file test_runner.py.

Referenced by IsSkiaGoldEnabled(), options(), Run(), SetDeleteOutputOnSuccess(), and SetEnforceExpectedImages().

◆ per_process_state

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

Definition at line 252 of file test_runner.py.

Referenced by _PrintSummary(), IsExecutionSuppressed(), and IsResultSuppressed().

◆ result_suppressed_cases

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

Definition at line 299 of file test_runner.py.

Referenced by _PrintSummary(), and HandleResult().

◆ resultdb

testing.tools.test_runner.TestRunner.resultdb

Definition at line 104 of file test_runner.py.

◆ skia_gold_failures

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

Definition at line 298 of file test_runner.py.

Referenced by _PrintSummary(), and HandleResult().

◆ skia_gold_successes

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

Definition at line 296 of file test_runner.py.

Referenced by _PrintSummary(), and HandleResult().

◆ skia_gold_unexpected_successes

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

Definition at line 297 of file test_runner.py.

Referenced by _PrintSummary(), and HandleResult().

◆ surprises

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

Definition at line 295 of file test_runner.py.

Referenced by _PrintSummary(), and HandleResult().

◆ test_cases


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