-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Labels
k::apiRelated to API (application interface)Related to API (application interface)k::documentationRelated to project documentationRelated to project documentationquestionFurther information is requestedFurther information is requested
Milestone
Description
Problem
Modifying the readme example to have multiple afters will only run the last after.
Example afters
World::cucumber()
.init_tracing()
.after(|_, _, _, _, _| async { tracing::info!("After 1") }.boxed_local())
.after(|_, _, _, _, _| async { tracing::info!("After 2") }.boxed_local())
.run("readme.feature").await;
Example output
Feature: Eating too much cucumbers may not be good for you
Scenario: Eating a few isn't a problem
✔ Given Alice is hungry
✔ When she eats 3 cucumbers
✔ Then she is full
2025-04-01T22:26:48.283264Z INFO scenario:after hook: double_after: After 2
[Summary]
1 feature
1 scenario (1 passed)
3 steps (3 passed)
Possible Solutions
- Add a warning that multiple afters have been set and only the last one will be run.
- Add support for multiple afters.
Metadata
Metadata
Assignees
Labels
k::apiRelated to API (application interface)Related to API (application interface)k::documentationRelated to project documentationRelated to project documentationquestionFurther information is requestedFurther information is requested