Skip to content

Commit d063b38

Browse files
committed
test(integration): write example compile output to /tmp to keep the project tree clean
1 parent 99afabb commit d063b38

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/integration.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ use std::path::Path;
88
#[test]
99
fn compile_example_project_produces_valid_dxf() {
1010
let project_dir = Path::new("examples/vivienda");
11-
let output = project_dir.join("output.dxf");
11+
let output = Path::new("/tmp/cadforge_compile_test_output.dxf");
1212

1313
// Remove previous output if exists
14-
let _ = fs::remove_file(&output);
14+
let _ = fs::remove_file(output);
1515

16-
compile_project(project_dir, None, None).unwrap();
16+
compile_project(project_dir, None, Some(output)).unwrap();
1717

1818
assert!(output.exists(), "output.dxf should be created");
1919

20-
let content = fs::read_to_string(&output).unwrap();
20+
let content = fs::read_to_string(output).unwrap();
2121

2222
// Verify DXF structure
2323
assert!(content.contains("SECTION"));

0 commit comments

Comments
 (0)