|
Class: TestRunnerMini (in Tools)
Object
|
+--Model
|
+--ApplicationModel
|
+--Tools::AbstractTestRunner
|
+--Tools::TestRunnerMini
|
+--Tools::TestRunnerEmbedded
- Package:
- stx:libtool
- Category:
- SUnit-UI
- Version:
- rev:
1.57
date: 2023/11/29 14:24:25
- user: cg
- file: Tools__TestRunnerMini.st directory: libtool
- module: stx stc-classLibrary: libtool
a tiny runner to be embedded in a system browser
copyrightCopyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague
Copyright (c) 2009-2010 eXept Software AG
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the 'Software'), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
help specs
-
helpSpec
-
This resource specification was automatically generated
by the UIHelpTool of ST/X.
image specs
-
pinIcon
-
-
pinIcon1
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
Usage example(s):
self pinIcon1 inspect
ImageEditor openOnClass:self andSelector:#pinIcon1
Icon flushCachedIcons
|
-
pinIcon2
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
Usage example(s):
self pinIcon2 inspect
ImageEditor openOnClass:self andSelector:#pinIcon2
Icon flushCachedIcons
|
interface specs
-
windowSpec
-
This resource specification was automatically generated
by the UIPainter of ST/X.
Usage example(s):
UIPainter new openOnClass:Tools::TestRunnerMini andSelector:#windowSpec
Tools::TestRunnerMini new openInterface:#windowSpec
Tools::TestRunnerMini open
|
queries
-
shouldRememberLastExtent
-
to be redefined by concrete applications:
if true is answered, the application's extent is remembered on close
and used as a default when opened the next time
accessing
-
allTestCases
-
-
allTestCases: something
-
-
infoHolder: something
-
to show something in the browsers info area (near the bottom
-
selectedTestMethods
-
-
selectedTestMethodsFromProtocols: protocols
-
-
selectedTestMethodsFromProtocols: protocols inClass: aTestClass
-
-
selectedTestMethodsInClass: testClass
-
-
theSingleTestCase
-
actions
-
debug
-
run the selected test(s), opening a debugger on error/fail.
Also executes tests which want to be skipped
Usage example(s):
^self run:suite debug: true coverageContext: nil.
|
Usage example(s):
-
pin
-
create a new pinned runner;
that is one in its own top window
-
run
-
run the selected test(s), NOT opening a debugger on error/fail.
Also executes tests which want to be skipped
-
run: suite
-
-
run: suite debug: debug
-
Modified (format): / 27-03-2019 / 16:16:05 / Claus Gittinger
-
run: suite debug: debug coverageContext: coverageContextOrNil
-
no need to show - will be voided by first test message anyway
-
runAll
-
-
runAllWithCoverage
-
return a collection of classes which are covered by the selected
tests. Requires that the testcase returns a non-empty collection
from the coveredClasses query
-
runFailed
-
-
runWithDebug
-
cg: I really do not want to run them twice to get a debugger
-
stop
-
aspects
-
debugVisibleAspect
-
-
notRunningHolder
-
-
progressHolder
-
return/create the 'progressHolder' value holder (automatically generated)
-
progressIndicatorShownHolder
-
-
resultBackgroundColorAspect
-
View defaultBackgroundColor
-
resultHolder
-
return/create the 'resultHolder' value holder (automatically generated)
-
resultInfoAspect
-
-
resultNameAspect
-
-
resultTextForegroundColorAspect
-
-
runAllEnabledHolder
-
-
runEnabledHolder
-
-
runFailedEnabledHolder
-
argument: self resultHolder
-
runningHolder
-
-
stopEnabledHolder
-
aspects-visibility
-
pinButtonVisibleHolder
-
-
runAllButtonVisibleHolder
-
-
runFailedButtonVisibleHolder
-
change & update
-
invalidateSuiteAndResult
-
-
update: aspect with: param from: sender
-
updateSuiteAndResult.
-
updateSuiteAndResult
-
-
updateTestCases
-
Nothing to do here
-
updateTestSuiteAndResult
-
ouch: duplicate code
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
updateVisibility
-
cg: now done by embedder via a valueHolder on the visibility
hooks
-
commonPostOpen
-
(comment from inherited method)
a common hook for postOpenWith:, postOpenAsSubcanvasWith: and postOpenAsDialogWith:.
Notice: redefined methods should do a super send.
otherwise resources might be undefined.
-
postBuildRunnerPanel: aView
-
-
release
-
(comment from inherited method)
remove all references to objects that may refer to self.
Subclasses may redefine this method but should do a 'super release'.
-
releaseAsSubCanvas
-
(comment from inherited method)
a subcanvas is closed or switching to a new application.
Can be redefined to perform a self release in this case.
initialization
-
initialize
-
(comment from inherited method)
nothing done here;
but can be redefined in concrete applications
private
-
isTestCaseLike: cls
-
-
postBuildProgressIndicator: aWidget
-
queries
-
allCoveredClasses
-
return a collection of classes which are covered by the selected
tests. Requires that the testcase returns a non-empty collection
from the coveredClasses query
-
hasTestCaseSelected
-
utilities
-
resultForSuite: suite
-
-
suiteForRun
-
-
suiteForRunAll
-
raise an error: must be redefined in concrete subclass(es)
-
suiteForRunFailed
-
SuiteAndResult
|