From f42e75d567b3a8657fc4eb7a7e1e0f88be5e9002 Mon Sep 17 00:00:00 2001
From: Hugo Trentesaux <hugo@trentesaux.fr>
Date: Sat, 9 Dec 2023 14:59:49 +0100
Subject: [PATCH] panic if failed steps

---
 end2end-tests/tests/cucumber_tests.rs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/end2end-tests/tests/cucumber_tests.rs b/end2end-tests/tests/cucumber_tests.rs
index 3dbe1be28..081d45c12 100644
--- a/end2end-tests/tests/cucumber_tests.rs
+++ b/end2end-tests/tests/cucumber_tests.rs
@@ -669,12 +669,18 @@ async fn main() {
         .run(features_path)
         .await;
 
+    if summarize.failed_steps() > 0 {
+        panic!("Could not run tests correctly (failed steps)");
+    }
     if summarize.hook_errors() > 0 {
         panic!("Could not run tests correctly (hook errors)");
     }
     if summarize.parsing_errors() > 0 {
         panic!("Could not run tests correctly (parsing errors)");
     }
+    if summarize.execution_has_failed() {
+        panic!("Could not run tests correctly (execution has failed)");
+    }
 }
 
 fn genesis_conf_name(feature_tags: &[String], scenario_tags: &[String]) -> String {
-- 
GitLab