eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Tools::TestRunnerMini':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: TestRunnerMini (in Tools)


Inheritance:

   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

Description:


a tiny runner to be embedded in a system browser

copyright

Copyright (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.

Class protocol:

help specs
o  helpSpec
This resource specification was automatically generated
by the UIHelpTool of ST/X.

image specs
o  pinIcon

o  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

o  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
o  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
o  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


Instance protocol:

accessing
o  allTestCases

o  allTestCases: something

o  infoHolder: something
to show something in the browsers info area (near the bottom

o  selectedTestMethods

o  selectedTestMethodsFromProtocols: protocols

o  selectedTestMethodsFromProtocols: protocols inClass: aTestClass

o  selectedTestMethodsInClass: testClass

o  theSingleTestCase

actions
o  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):

debug run is synchronous

o  pin
create a new pinned runner;
that is one in its own top window

o  run
run the selected test(s), NOT opening a debugger on error/fail.
Also executes tests which want to be skipped

o  run: suite

o  run: suite debug: debug
Modified (format): / 27-03-2019 / 16:16:05 / Claus Gittinger

o  run: suite debug: debug coverageContext: coverageContextOrNil
no need to show - will be voided by first test message anyway

o  runAll

o  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

o  runFailed

o  runWithDebug
cg: I really do not want to run them twice to get a debugger

o  stop

aspects
o  debugVisibleAspect

o  notRunningHolder

o  progressHolder
return/create the 'progressHolder' value holder (automatically generated)

o  progressIndicatorShownHolder

o  resultBackgroundColorAspect
View defaultBackgroundColor

o  resultHolder
return/create the 'resultHolder' value holder (automatically generated)

o  resultInfoAspect

o  resultNameAspect

o  resultTextForegroundColorAspect

o  runAllEnabledHolder

o  runEnabledHolder

o  runFailedEnabledHolder
argument: self resultHolder

o  runningHolder

o  stopEnabledHolder

aspects-visibility
o  pinButtonVisibleHolder

o  runAllButtonVisibleHolder

o  runFailedButtonVisibleHolder

change & update
o  invalidateSuiteAndResult

o  update: aspect with: param from: sender
updateSuiteAndResult.

o  updateSuiteAndResult

o  updateTestCases
Nothing to do here

o  updateTestSuiteAndResult
ouch: duplicate code

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  updateVisibility
cg: now done by embedder via a valueHolder on the visibility

hooks
o  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.

o  postBuildRunnerPanel: aView

o  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'.

o  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
o  initialize
(comment from inherited method)
nothing done here;
but can be redefined in concrete applications

private
o  isTestCaseLike: cls

o  postBuildProgressIndicator: aWidget

queries
o  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

o  hasTestCaseSelected

utilities
o  resultForSuite: suite

o  suiteForRun

o  suiteForRunAll
raise an error: must be redefined in concrete subclass(es)

o  suiteForRunFailed


Private classes:

    SuiteAndResult


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:38:53 GMT