Skip to content

馃摎 Doc: Example of after_hook #225

Answered by ilslv
tgsmith61591 asked this question in Q&A
Discussion options

You must be logged in to vote

We have a separate book chapter covering Scenario hooks. In your case it would look something like

MyCoolWorld::cucumber()
    .after(|feature, rule, scenario, world| {
        // Hook logic here.
    })
    .run_and_exit("./products")
    .await;

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tgsmith61591
Comment options

Answer selected by ilslv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #224 on July 25, 2022 15:12.