Action #458

Feature #457: Finalize test suite usage

Use test suite for Python tests.

Added by Knödlseder Jürgen about 12 years ago. Updated about 12 years ago.

Status:ClosedStart date:09/04/2012
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% Done:

100%

Category:-Estimated time:8.00 hours
Target version:00-06-00
Duration:

Recurrence

No recurrence.

History

#1 Updated by Knödlseder Jürgen about 12 years ago

  • Start date set to 09/04/2012

due to changes in a related task

#2 Updated by Knödlseder Jürgen about 12 years ago

  • Status changed from New to Closed
  • Remaining (hours) changed from 8.0 to 0.0

#3 Updated by Knödlseder Jürgen about 12 years ago

  • Assigned To set to Knödlseder Jürgen
  • % Done changed from 0 to 100

A special GPythonTestSuite class was developed that derived from GTestSuite and that implements callback functionality for Python functions. In that way, Python functions can be called from C++ code. This allows to build test suites for Python in a way that is analogous to C++.

For each GammaLib module, a specific Python module was created that is now imported by test_python.py. This allows splitting the Python unit test over several files.

Also available in: Atom PDF