bugscpp.processor.test.TestCommand

class TestCommand[source]

Bases: processor.core.command.DockerCommand

Run test command either with or without coverage.

__init__()[source]

Methods

__init__()

create_script_generator(args)

Return DockerExecInfo which has information of a command list to run inside docker container.

script_callback(script, *args, **kwargs)

Callback function to register used to collect data after each command is executed.

setup(generator)

Invoked before container is created.

summary_dir(case)

Return path where coverage data should be created.

teardown(generator)

Invoked after container is destroyed.

Attributes

SCRIPT_NAME

group

Represent the group of this command.

help

Description of this command.

create_script_generator(args: argparse.Namespace) processor.core.command.DockerCommandScriptGenerator[source]

Return DockerExecInfo which has information of a command list to run inside docker container.

Parameters

args (argparse.Namespace) – argparse.Namespace instance.

Returns

An instance of generator class which is used to create DockerCommandScript.

Return type

DockerCommandScriptGenerator

property group: str

Represent the group of this command. It is not meaningful yet.

property help: str

Description of this command.

script_callback(script: bugscpp.processor.test.TestCommandScript, *args, **kwargs)[source]

Callback function to register used to collect data after each command is executed.

Parameters

script (TestCommandScript) – Script instance which has been executed.

Returns

Return type

None

setup(generator: processor.core.command.DockerCommandScriptGenerator)[source]

Invoked before container is created.

Parameters

generator (DockerCommandScriptGenerator) – The current instance being used.

summary_dir(case: int) pathlib.Path[source]

Return path where coverage data should be created.

Parameters

case (int) – Case number.

Returns

Return type

pathlib.Path

teardown(generator: processor.core.command.DockerCommandScriptGenerator)[source]

Invoked after container is destroyed.

Parameters

generator (DockerCommandScriptGenerator) – The current instance being used.