planemo.galaxy.test package

Submodules

planemo.galaxy.test.actions module

Actions related to running and reporting on Galaxy-specific testing.

planemo.galaxy.test.actions.handle_reports(ctx, structured_data, kwds)[source]

Write reports based on user specified kwds.

planemo.galaxy.test.actions.handle_reports_and_summary(ctx, structured_data, exit_code=None, kwds=None)[source]

Produce reports and print summary, return 0 if tests passed.

If exit_code is set - use underlying test source for return code and test success determination, otherwise infer from supplied test data.

planemo.galaxy.test.structures module

Utilities for reasoning about Galaxy test results.

class planemo.galaxy.test.structures.GalaxyTestCommand(html_report_file, xunit_report_file, structured_report_file, failed=False, installed=False)[source]

Bases: object

Abstraction around building a run_tests.sh command for Galaxy tests.

build()[source]
class planemo.galaxy.test.structures.GalaxyTestResults(output_json_path, output_xml_path, output_html_path, exit_code)[source]

Bases: object

Class that combine the test-centric xunit output with the Galaxy centric structured data output - and abstracts away the difference (someday).

property all_tests_passed
property exit_code
property has_details
property num_problems
property num_tests
property xunit_testcase_elements
class planemo.galaxy.test.structures.StructuredData(json_path)[source]

Bases: StructuredData

Abstraction around Galaxy’s structured test data output.

merge_xunit(xunit_root)[source]
class planemo.galaxy.test.structures.TestId(name, num, id)[source]

Bases: NamedTuple

id: str

Alias for field number 2

property label
name: str

Alias for field number 0

num: int

Alias for field number 1

planemo.galaxy.test.structures.case_id(testcase_el=None, raw_id=None)[source]
planemo.galaxy.test.structures.find_cases(xunit_root)[source]
planemo.galaxy.test.structures.parse_xunit_report(xunit_report_path)[source]
planemo.galaxy.test.structures.xunit_t_elements_from_root(xunit_root)[source]

Module contents

Entry point and interface for planemo.galaxy.test package.

class planemo.galaxy.test.StructuredData(json_path)[source]

Bases: StructuredData

Abstraction around Galaxy’s structured test data output.

merge_xunit(xunit_root)[source]
planemo.galaxy.test.handle_reports(ctx, structured_data, kwds)[source]

Write reports based on user specified kwds.

planemo.galaxy.test.handle_reports_and_summary(ctx, structured_data, exit_code=None, kwds=None)[source]

Produce reports and print summary, return 0 if tests passed.

If exit_code is set - use underlying test source for return code and test success determination, otherwise infer from supplied test data.