eradiate.testing.test_cases.rami4atm.Case#
- class eradiate.testing.test_cases.rami4atm.Case(id, make_experiments, tests=NOTHING, postprocess=<function _single_result>)#
Bases:
objectDefinition of a RAMI4ATM benchmarking case.
A case bundles everything needed to run a scenario and to decide whether its results are acceptable, so that a consumer (e.g. regression test suite or the performance benchmarks) needs no knowledge of the scenario itself.
- Parameters:
id (
str) – Case identifier, following the RAMI4ATM naming convention (seecreate_toa()).make_experiments (
callable()) – Callable building the experiments the case is made of. It takes the sample count as itssppkeyword argument.tests (
listofRegressionTest, default:[]) – Criteria the comparison against the reference must satisfy. They all share a single reference dataset.postprocess (
callable(), default:select the single result) – Callable turning the results of the case’s experiments into the dataset the criteria are applied to.
- Fields:
id (
str) – Case identifier, following the RAMI4ATM naming convention (seecreate_toa()).make_experiments (
callable()) – Callable building the experiments the case is made of.tests (
listofRegressionTest) – Criteria the comparison against the reference must satisfy.postprocess (
callable()) – Callable turning the results of the case’s experiments into the dataset the criteria are applied to.