Skip to content

How can I provide a specific context to a specific test? #228

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

You must be logged in to vote

@artgocode first of all, I hope you are doing well. Слава Україні!


Or maybe there is another way to structure my tests?

We intend for users of this crate to structure tests in a quite particular way, mostly because Rust doesn't support custom test runners very well yet. I think good example of cucumber usage would be pagebreak or algonaut.

But to sum up a bit:

Folders structure

src/_
    | main.rs        // Actual application logic to test. In your case, probably `actix_web` backend.
tests/
    | cucumber.rs   // `World` definition. Code for it leaves in your `helpers.rs` for now.
    |_features/
    |   | *         // Everything here may be left in tact.  
                    // But n…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@artgocode
Comment options

@ilslv
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 #227 on September 04, 2022 16:43.