cardano_node_tests package

Subpackages

Submodules

cardano_node_tests.cardano_cli_coverage module

Generate coverage report for cardano-cli sub-commands and options.

cardano_node_tests.cardano_cli_coverage.cli(cli_args: Iterable[str]) str[source]

Run the cardano-cli command.

cardano_node_tests.cardano_cli_coverage.get_args() Namespace[source]

Get script command line arguments.

cardano_node_tests.cardano_cli_coverage.get_available_commands(cli_args: Iterable[str], ignore_skips: bool = False) dict[source]

Get all available cardano-cli sub-commands and options.

cardano_node_tests.cardano_cli_coverage.get_badge_icon(report: dict) str[source]

Return URL of badge icon.

cardano_node_tests.cardano_cli_coverage.get_coverage(coverage_files: List[Path], available_commands: dict) dict[source]

Get coverage info by merging available data.

cardano_node_tests.cardano_cli_coverage.get_log_coverage(log_file: Path) dict[source]

Get coverage info from log file containing CLI commands.

cardano_node_tests.cardano_cli_coverage.get_report(arg_name: str, coverage: dict, uncovered_only: bool = False) Tuple[dict, int, int][source]

Generate coverage report.

cardano_node_tests.cardano_cli_coverage.main() int[source]
cardano_node_tests.cardano_cli_coverage.merge_coverage(dict_a: dict, dict_b: dict) dict[source]

Merge dict_b into dict_a.

cardano_node_tests.cardano_cli_coverage.parse_cmd_output(output: str) List[str][source]

Parse cardano-cli command output, return sub-commands and options names.

cardano_node_tests.chang_us_coverage module

Generate coverage report of Chang User Stories.

cardano_node_tests.chang_us_coverage.get_args() Namespace[source]

Get command line arguments.

cardano_node_tests.chang_us_coverage.main() int[source]

cardano_node_tests.dump_requirements_coverage module

Generate coverage results for external requirements.

cardano_node_tests.dump_requirements_coverage.get_args() Namespace[source]

Get command line arguments.

cardano_node_tests.dump_requirements_coverage.main() int[source]

cardano_node_tests.prepare_cluster_scripts module

Create a directory with scripts and config files for running cluster instance.

For settings it uses the same env variables as when running the tests.

cardano_node_tests.prepare_cluster_scripts.get_args() Namespace[source]

Get command line arguments.

cardano_node_tests.prepare_cluster_scripts.main() int[source]
cardano_node_tests.prepare_cluster_scripts.prepare_scripts_files(destdir: str | Path, scriptsdir: str | Path = '', instance_num: int = 0) InstanceFiles[source]

Prepare scripts files for starting and stopping cluster instance.

cardano_node_tests.split_topology module

Generate topology files for split cluster.

For settings it uses the same env variables as when running the tests.

cardano_node_tests.split_topology.get_args() Namespace[source]

Get command line arguments.

cardano_node_tests.split_topology.main() int[source]

cardano_node_tests.testnet_cleanup module

Cleanup a testnet with the help of testing artifacts.

  • withdraw rewards

  • deregister stake addresses

  • return funds to faucet

cardano_node_tests.testnet_cleanup.get_args() Namespace[source]

Get command line arguments.

cardano_node_tests.testnet_cleanup.main() int[source]

Module contents