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.
Undocumented
| Method | __extract |
Extract individual test cases from a test suite recursively. |
| Method | __init__ |
Initialize the TestingEngine with application configuration. |
| Async Method | __save |
Save test results to a JSON cache file asynchronously. |
| Method | discover |
Discover and filter tests using configuration parameters. |
| Async Method | run |
Run the discovered test suite asynchronously. |
| Method | set |
Set the fail-fast behavior for the testing engine. |
| Method | set |
Set the file pattern for test file discovery. |
| Method | set |
Set the method pattern for test method discovery. |
| Method | set |
Set the start directory for test discovery. |
| Method | set |
Set the verbosity level for the testing engine. |
| Method | without |
Disable the start panel display for the testing engine. |
| Instance Variable | __base |
Undocumented |
| Instance Variable | __cache |
Undocumented |
| Instance Variable | __fail |
Undocumented |
| Instance Variable | __file |
Undocumented |
| Instance Variable | __json |
Undocumented |
| Instance Variable | __method |
Undocumented |
| Instance Variable | __start |
Undocumented |
| Instance Variable | __verbosity |
Undocumented |
| Instance Variable | __with |
Undocumented |
unittest.TestSuite) -> Generator[ unittest.TestCase]:
(source)
¶
Extract individual test cases from a test suite recursively.
| Parameters | |
testunittest.TestSuite | Test suite to extract test cases from. |
| Returns | |
Generator[unittest.TestCase, None, None] | Generator yielding individual test cases. |
Initialize the TestingEngine with application configuration.
Every testing.* key that is absent from the application configuration resolves to None and is replaced by the default declared in orionis.foundation.config.testing.Testing, so discovery never receives a missing value.
| Parameters | |
app:IApplication | Application instance providing configuration values. |
| Returns | |
None | This method does not return a value. |
Save test results to a JSON cache file asynchronously.
| Parameters | |
results:list[TestResult] | List of test results to save. |
| Returns | |
None | This method does not return a value. |
Discover and filter tests using configuration parameters.
| Returns | |
unittest.TestSuite | Test suite containing filtered test cases. |
| Raises | |
Exception | If a test module raises an exception outside loader error handling. |
Run the discovered test suite asynchronously.
Discovers the tests, builds a runner carrying the configured verbosity, and executes them using a thread pool to avoid blocking. Saves results to cache if enabled.
| Returns | |
list[TestResult] | List of TestResult objects containing test execution outcomes. |