From 0a51f1d46d559bb5d8230cfe63f0e55e1980facf Mon Sep 17 00:00:00 2001 From: Hugo Trentesaux <hugo@trentesaux.fr> Date: Mon, 6 Jun 2022 19:01:36 +0200 Subject: [PATCH] doc(cucumber) timeout and caps --- end2end-tests/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/end2end-tests/README.md b/end2end-tests/README.md index 4de191b66..b607dfd63 100644 --- a/end2end-tests/README.md +++ b/end2end-tests/README.md @@ -1,6 +1,6 @@ # Duniter-v2s end2end tests -## cucumber functionnal tests +## Cucumber functionnal tests We use [cucumber] to be able to describe test scenarios in human language. @@ -20,7 +20,7 @@ Feature: Balance transfer Then dave should have 5 ÄžD ``` -### create a new functional test +### Create a new functional test To create a new test scenario, simply create a new file with a name of your choice in the `/cucumber-features` folder and give it the extension `.feature`. @@ -96,7 +96,7 @@ Amounts must be expressed as an integer of `ÄžD` or `UD`, decimal numbers are no If you need more precision, you can express amounts in cents of ÄžD (write `cÄžD`), or in thousandths of UD (write `mUD`). -### genesis state +### Genesis state Each scenario bootstraps its own blockchain with its own genesis state. @@ -132,7 +132,7 @@ cargo cucumber -i monetary* will only run `.feature` files that start with `"monetary"`. The features will be tested in parallel and logs files will be written in the `end2end-tests` folder. -If you get an `Error: Timeout`, look at the logs to understand why Duniter did not launch successfully. +If you get an `Error: Timeout`, look at the logs to understand why Duniter did not launch successfully. You can also set the environment variable `DUNITER_END2END_TESTS_SPAWN_NODE_TIMEOUT` to increase the timeout for node spawn. ### Contribute to the code that runs the tests -- GitLab