Cucumber Trellis
Create a test "trellis" for Cucumber.
You can create a test suite for Cucumber, with each test implemented in a file, linked to a Gherkin feature file.
Each test implements a trait CucumberTest and this test is registered in the "trellis".
Finally, all tests are executed in parallel, and the trellis waits for all tests to finish.
Installation
Usage
First, allows Cucumber to print output instead of libtest
by adding these lines in your Cargo.toml:
[[]]
= "cucumber"
= false
Then, put feature files in tests/features directory,
and put the following code in tests/cucumber.rs:
After that , in tests/tests/example.rs,
implements the trait cucumber_trellis::CucumberTest, like this:
use CucumberTest;
use World;
pub ;
// Implement here, the steps according the file `tests/features/simple-test.feature`
// ...
Don't forget the file tests/tests/mod.rs:
pub
Finally, run the tests:
Example
You have an example in the tests directory.