Skip to content
Snippets Groups Projects
Commit 00985037 authored by Cédric Moreau's avatar Cédric Moreau Committed by Hugo Trentesaux
Browse files

Resolve "Tests E2E fails but CI pass" (!210)

* fix clippy

* update again metadata after rebase on master

* panic if failed steps

* fix(#154): E2E: parsing errors must make the test fail
parent 6cf445b5
No related branches found
No related tags found
1 merge request!210Resolve "Tests E2E fails but CI pass"
Pipeline #34718 passed
......@@ -558,6 +558,9 @@ async fn should_have_distance_ok(world: &mut DuniterWorld, who: String) -> Resul
.await?
{
Some((_, gdev::runtime_types::pallet_distance::types::DistanceStatus::Valid)) => Ok(()),
Some((_, gdev::runtime_types::pallet_distance::types::DistanceStatus::Invalid)) => {
Err(anyhow::anyhow!("invalid distance status").into())
}
Some((_, gdev::runtime_types::pallet_distance::types::DistanceStatus::Pending)) => {
Err(anyhow::anyhow!("pending distance status").into())
}
......@@ -669,9 +672,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 {
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment