def test_functional_report(self): engine = EngineEmul() aggregator = FunctionalAggregator() aggregator.engine = engine engine.aggregator = aggregator obj = JUnitXMLReporter() obj.engine = engine obj.parameters = BetterDict() reader = FuncSamplesReader(RESOURCES_DIR + "functional/nose.ldjson", engine, ROOT_LOGGER) aggregator.add_underling(reader) aggregator.prepare() obj.prepare() aggregator.post_process() obj.post_process() self.assertFilesEqual(obj.report_file_path, RESOURCES_DIR + "functional/xunit-report.xml")
def test_functional_report(self): engine = EngineEmul() aggregator = FunctionalAggregator() aggregator.engine = engine engine.aggregator = aggregator obj = JUnitXMLReporter() obj.engine = engine obj.parameters = BetterDict() reader = FuncSamplesReader( __dir__() + "/../resources/functional/nose.ldjson", engine, logging.getLogger()) aggregator.add_underling(reader) aggregator.prepare() obj.prepare() aggregator.post_process() obj.post_process() self.assertFilesEqual( obj.report_file_path, __dir__() + "/../resources/functional/xunit-report.xml")