5.1. nose2unitth package

5.1.1. Submodules

5.1.2. nose2unitth.__main__ module

nose2unitth command line program

Author

Jonathan Karr <karr@mssm.edu>

Date

2017-08-16

Copyright

2016, Karr Lab

License

MIT

class nose2unitth.__main__.App(label=None, **kw)[source]

Bases: cement.core.foundation.App

Command line application

class Meta[source]

Bases: object

base_controller = 'base'[source]
handlers = [<class 'nose2unitth.__main__.BaseController'>][source]
label = 'nose2unitth'[source]
class nose2unitth.__main__.BaseController(*args, **kw)[source]

Bases: cement.ext.ext_argparse.ArgparseController

Base controller for command line application

class Meta[source]

Bases: object

arguments = [(['-v', '--version'], {'action': 'version', 'version': '0.0.13'}), (['in_file_nose'], {'type': <class 'str'>, 'help': 'path to nose test report that should be converted'}), (['out_dir_unitth'], {'type': <class 'str'>, 'help': 'path where converted test report should be saved'})][source]
description = 'Convert nose-style test reports into UnitTH-style test reports'[source]
label = 'base'[source]
nose2unitth.__main__.main()[source]

5.1.3. nose2unitth._version module

5.1.4. nose2unitth.core module

Convert nose-style test reports to UnitTH-style test reports by splitting modules into separate XML files

Author

Jonathan Karr <karr@mssm.edu>

Date

2017-07-27

Copyright

2016, Karr Lab

License

MIT

class nose2unitth.core.Converter[source]

Bases: object

Convert nose-style test reports to UnitTH-style test reports by splitting modules into separate XML files

static read_nose(in_file)[source]

Parse nose-style test reports into a dict

Parameters

in_file (str) – path to nose-style test report

Returns

dictionary of test suites

Return type

dict

static run(in_file_nose, out_dir_unitth)[source]

Convert nose-style test reports to UnitTH-style test reports by splitting modules into separate XML files

Parameters
  • in_file_nose (str) – path to nose-style test report

  • out_file_unitth (str) – path to save UnitTH-style test reports

static write_unitth(suites, out_dir)[source]

Write UnitTH-style test reports

Parameters
  • suites (dict) – dictionary of test suites

  • out_dir (str) – path to save UnitTH-style test reports

5.1.5. Module contents