Howto Extended the TestsX ClassΒΆ

The setuptestx provides two call APIs. The call by the imported class, which is used by the included setup.py, and an entry point, for the standard application, which does not need any modification of the setup.py.

  1. The standard entry point does not require any modification of the steup.py.

  2. For derived custom classes:

    1. Import in your setup.py for example:

      #
      # setup extension modules
      #
      from setuplib import usage
      from setuptestx.testx import TestX  # for unit tests
      
      class testx(TestX):
          def __init__(self, *args, **kargs):
              TestX.__init__(self, *args, **kargs)
      
    2. Hook them in e.g. as a command in your setup.py by:

      setup(
          cmdclass={                           # see [setuppy] and setup.py
              'testx': testx,
          },
          ...
      )
  3. Use it from the command line call for example by:

    python setup.py testx