km3test.configure

Managing test setup by reading configurations, handling test objects and performing test in class TestManager. Basic test steps include * adding test from test configuration files or manually * adding test objects * creating the test setup * running the tests * returning the test results

Module Contents

Classes

TestManager

Class to manage test execution

class km3test.configure.TestManager[source]

Class to manage test execution

Objects:
  • self.configs: holding configuration for tests

  • self.inputs: holding input objects to be tested (e.g. files paths)

  • self.tests: full test scenarios with according configuration and inputs (of type KM3Test)

  • self.outputs: output objects from tests (e.g. summaries, optional)

add_configuration(self, configname, config)[source]
add_input(self, inputname, inputconfig)[source]
add_report(self, reportname, reportconfig)[source]
read_standards(self, folderpath='')[source]
read_configfile(self, infilename, prefix='')[source]

Auxiliary to read configurations from yaml file

create(self)[source]

Creates KM3Tests from configurations

run(self)[source]

Runs created tests in self.test

report(self, display=False)[source]

Returns results according to configuration

save_all(self, filepath)[source]

Saves all configurations, tests and reports as python object

read_all(self, filepath)[source]