diff --git a/tests/scenarios/fixtures.rs b/tests/scenarios/fixtures.rs index 0faac7611..a04e01c2d 100644 --- a/tests/scenarios/fixtures.rs +++ b/tests/scenarios/fixtures.rs @@ -80,13 +80,9 @@ pub async fn before_scenario( ) { collect_function_calls(world); - let escaped_filename = NON_ALNUM_RE + let filename = NON_ALNUM_RE .replace_all(scenario.name.as_str(), "-") .to_string(); - let filename = match escaped_filename.len() > 100 { - true => escaped_filename[..100].to_string(), - false => escaped_filename, - }; let mut prefix = "Test".to_string(); let mut cassette_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR")); cassette_dir.push(format!( @@ -94,6 +90,8 @@ pub async fn before_scenario( world.api_version, feature.name.replace(' ', "_").to_lowercase() )); + log::debug!("Check the freeezee --- {}", feature.name); + create_dir_all(&cassette_dir).expect("failed to create cassette directory"); let mut cassette = cassette_dir.clone(); cassette.push(format!("{}.json", filename));