diff --git a/crates/fce-test-macro-impl/src/fce_test/glue_code_generator.rs b/crates/fce-test-macro-impl/src/fce_test/glue_code_generator.rs index 9f82780..ce0949c 100644 --- a/crates/fce-test-macro-impl/src/fce_test/glue_code_generator.rs +++ b/crates/fce-test-macro-impl/src/fce_test/glue_code_generator.rs @@ -170,16 +170,35 @@ fn generate_app_service_ctor(config_path: &str, modules_dir: &Path) -> TResult { + Some((file_path, p)) + } + _ => None, + }) { + Some(t) => t, + None => break, + }; + file_path = file_path_; + + truncated_file_path.push(remainder); + } + + for path in truncated_file_path.iter().rev() { + module_path.push(path); + } + + let _ = module_path.pop(); - //let module_path = module_path.parent().expect("can't pop file name"); let config_path = module_path.join(#config_path); let modules_dir = module_path.join(#modules_dir); let modules_dir = modules_dir.to_str().expect("modules_dir contains invalid UTF8 string");