1 use log::error; 2 use test_base::{ 3 test_context::{self as test_context, test_context}, 4 BaseTestContext, 5 }; 6 7 const CONFIG_V1_DIR: &str = "tests/data/dadk_config_v1"; 8 9 #[test_context(BaseTestContext)] 10 #[test] 11 fn test_parser(ctx: &mut BaseTestContext) { 12 let mut parser = dadk::parser::Parser::new(ctx.abs_path(CONFIG_V1_DIR)); 13 let result = parser.parse(); 14 let cwd = std::env::current_dir().unwrap(); 15 16 log::debug!("Current working directory: {:?}", cwd); 17 if let Err(e) = result { 18 error!("Error: {:?}", e); 19 assert!(false); 20 } 21 } 22