Version: 9.8.0
unittester
Collaboration diagram for unittester:

Functions

def unittester.run (modulePath, functionName)
 This function should be used for very basic unit tests and only for a rapid development. More...
 
def unittester.tryfunction (function, argv)
 This function is for debug only. More...
 
def KERNEL_PY.kernel.unittester.run (modulePath, functionName)
 This function should be used for very basic unit tests and only for a rapid development. More...
 
def KERNEL_PY.kernel.unittester.tryfunction (function, argv)
 This function is for debug only. More...
 

Detailed Description

Run very basic unit tests

Function Documentation

◆ run() [1/2]

def unittester.run (   modulePath,
  functionName 
)

◆ run() [2/2]

def KERNEL_PY.kernel.unittester.run (   modulePath,
  functionName 
)

This function should be used for very basic unit tests and only for a rapid development.

A better way should be the pyunit framework. The function functionName is supposed here to return a boolean value indicating if the test is OK (True) or NOT OK (False)

This function should be used for very basic unit tests and only for a
rapid development. A better way should be the pyunit framework.
The function functionName is supposed here to return a boolean value
indicating if the test is OK (True) or NOT OK (False)

Referenced by KERNEL_PY.kernel.unittester.TEST_myTestIsNotOk().

◆ tryfunction() [1/2]

def unittester.tryfunction (   function,
  argv 
)

This function is for debug only.

It executes the specified function with the specified arguments in a try/except block so as to display the exception in the case where an exception is raised (useful to debug server side of a CORBA process).

◆ tryfunction() [2/2]

def KERNEL_PY.kernel.unittester.tryfunction (   function,
  argv 
)

This function is for debug only.

It executes the specified function with the specified arguments in a try/except block so as to display the exception in the case where an exception is raised (useful to debug server side of a CORBA process).

This function is for debug only. It executes the specified function with the
specified arguments in a try/except block so as to display the exception in
the case where an exception is raised (useful to debug server side of a CORBA
process).