Skip to content
Snippets Groups Projects

Resolve "E2E tests fail but the CI succeeds"

Merged Cédric Moreau requested to merge 132-e2e-tests-fail-but-the-ci-succeeds into master
Files
2
@@ -18,7 +18,7 @@ mod common;
@@ -18,7 +18,7 @@ mod common;
use async_trait::async_trait;
use async_trait::async_trait;
use common::*;
use common::*;
use cucumber::{given, then, when, World, WorldInit};
use cucumber::{given, then, when, FailureWriter, World, WorldInit};
use sp_keyring::AccountKeyring;
use sp_keyring::AccountKeyring;
use std::convert::Infallible;
use std::convert::Infallible;
use std::path::PathBuf;
use std::path::PathBuf;
@@ -636,7 +636,7 @@ async fn main() {
@@ -636,7 +636,7 @@ async fn main() {
})
})
.expect("Error setting Ctrl-C handler");
.expect("Error setting Ctrl-C handler");
DuniterWorld::cucumber()
let summarize = DuniterWorld::cucumber()
//.fail_on_skipped()
//.fail_on_skipped()
.max_concurrent_scenarios(4)
.max_concurrent_scenarios(4)
.before(|feature, _rule, scenario, world| {
.before(|feature, _rule, scenario, world| {
@@ -660,8 +660,12 @@ async fn main() {
@@ -660,8 +660,12 @@ async fn main() {
Box::pin(std::future::ready(()))
Box::pin(std::future::ready(()))
})
})
.with_cli(opts)
.with_cli(opts)
.run_and_exit(features_path)
.run(features_path)
.await;
.await;
 
 
if summarize.hook_errors() > 0 {
 
panic!("Could not run tests correctly (hook errors)");
 
}
}
}
fn genesis_conf_name(feature_tags: &[String], scenario_tags: &[String]) -> String {
fn genesis_conf_name(feature_tags: &[String], scenario_tags: &[String]) -> String {
Loading