The Redis database is automatically flushed before each scenario using the @BeforeScenario
hook. This ensures that each scenario starts with a clean database, preventing test pollution from previous scenarios.
There is no specific Gherkin step required; this happens automatically before each test scenario.
After all scenarios in a feature are completed, the system performs garbage collection to free up memory.
There is no specific Gherkin step required; this happens automatically after the last test in a feature.