From 912f5b55d059c7d5ffce625b31b01c46df44d434 Mon Sep 17 00:00:00 2001 From: librelois <c@elo.tf> Date: Thu, 13 Jan 2022 01:59:47 +0100 Subject: [PATCH] tests: change execution config and update doc --- integration-tests/README.md | 12 +++++++++++- integration-tests/tests/cucumber_tests.rs | 5 ++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/integration-tests/README.md b/integration-tests/README.md index 707dfd8cb..b16954b05 100644 --- a/integration-tests/README.md +++ b/integration-tests/README.md @@ -27,7 +27,17 @@ folder and give it the extension `.feature`. Read in the sections below which users are available and which operations you can write. - [Cucumber Rust Book] +If you want to write things that are not yet interpreted, consider adding the `@allow.skipped` tag above your script: + +```gherkin +Feature: My awesome feature + + @allow.skipped + Scenario: If something like this happens, then we should observe that + Given Something + When Something's happening + Then We should observe that +``` ### Test users diff --git a/integration-tests/tests/cucumber_tests.rs b/integration-tests/tests/cucumber_tests.rs index d1ee4118e..cd327e76e 100644 --- a/integration-tests/tests/cucumber_tests.rs +++ b/integration-tests/tests/cucumber_tests.rs @@ -148,5 +148,8 @@ async fn current_ud_amount_should_be( async fn main() { //env_logger::init(); - DuniterWorld::run("features").await + DuniterWorld::cucumber() + .fail_on_skipped() + .max_concurrent_scenarios(4) + .run("features").await; } -- GitLab