ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

class TestCommand(BaseCommand): (source)

View In Hierarchy

Run the configured application test suite from the console.

Method __resolveVerbosity Resolve the verbosity level requested for this run.
Async Method handle Execute the test command with configured parameters.
Class Variable arguments List of Argument instances defining command-line options and arguments.
Class Variable description Command description.
Class Variable signature Command signature and description.
Class Variable timestamps Indicates whether timestamps will be shown in the command output.
def __resolveVerbosity(self, cli_value: object, app: IApplication) -> int | None: (source)

Resolve the verbosity level requested for this run.

Parameters
cli_value:objectValue supplied through the --verbosity flag, or None when absent.
app:orionis.IApplicationApplication instance providing the configured fallback.
Returns
int | NoneThe validated verbosity level, or None when neither the CLI nor the configuration provide one.
Raises
ValueErrorIf the resolved verbosity is not 0, 1 or 2.
async def handle(self, app: IApplication, test_engine: ITestingEngine) -> int: (source)

Execute the test command with configured parameters.

Every option resolves from the CLI first and from the application configuration afterwards. An option that resolves to nothing is left untouched so the engine keeps the default it already computed.

Parameters
app:orionis.IApplicationApplication instance providing configuration and context.
test_engine:orionis.test.contracts.engine.ITestingEngineTesting engine resolved by the container and driven by this command.
Returns
intZero for nonempty results without failures or errors; one otherwise.
Raises
ValueErrorIf the resolved verbosity is not 0, 1 or 2.
arguments: ClassVar[list[Argument]] = (source)

List of Argument instances defining command-line options and arguments.

description: str = (source)

Command description.

signature: str = (source)

Command signature and description.

timestamps: bool = (source)

Indicates whether timestamps will be shown in the command output.