Overview of pkg/framework interfaces
masterThe pkg/framework package provides a high-level abstraction for integrating Allure reporting into your test suites. It is built around two primary interfaces that define how you interact with the Allure lifecycle:
provider.T: The main interface for managing the test lifecycle. It includes methods for creating steps, adding attachments, handling assertions, managing suite-level metadata, and manipulating test behavior.provider.StepCtx: A context-aware interface used within the scope of a specific test step. It allows you to add nested steps, attach data, log information, and perform assertions that are specifically scoped to that step.
Understanding these interfaces is key to using the framework to generate rich, structured Allure reports.