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.
-
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.
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.
-
class
planemo.galaxy.test.
StructuredData
(json_path)[source]¶ Bases:
planemo.test.results.StructuredData
Abstraction around Galaxy’s structured test data output.