planemo.galaxy.test package

Submodules

planemo.galaxy.test.actions module

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

planemo.galaxy.test.actions.run_in_config(ctx, config, run=<function run_galaxy_command>, test_data_target_dir=None, **kwds)[source]

Run Galaxy tests with the run_tests.sh command.

The specified config object describes the context for tool execution.

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).

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

Bases: planemo.test.results.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: tuple

id

Alias for field number 2

label
name

Alias for field number 0

num

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.

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.

planemo.galaxy.test.run_in_config(ctx, config, run=<function run_galaxy_command>, test_data_target_dir=None, **kwds)[source]

Run Galaxy tests with the run_tests.sh command.

The specified config object describes the context for tool execution.

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

Bases: planemo.test.results.StructuredData

Abstraction around Galaxy’s structured test data output.

merge_xunit(xunit_root)[source]