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.42 date: 2019/08/16 20:55:35
user: cg
file: Tools__TestRunnerMini.st directory: libtool
module: stx stc-classLibrary: libtool

Description:


a tiny runner to be embedded in a system browser


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
rounded

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

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.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 16 Apr 2021 10:23:46 GMT