Skip to content

Commit 3c9b3b3

Browse files
committed
fix: update output file paths for test report
- Changed the location of the test report from the root directory to the output folder. - Updated related print statements to reflect the new file path.
1 parent ec864a6 commit 3c9b3b3

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ __pycache__/
88
build/lib/codestate/
99
codestate.egg-info
1010
.codestate/
11-
codestate.exe
11+
codestate.exe
12+
output/

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ fn run_all_tests() -> Result<()> {
811811
("multi", vec!["--multi", "src", "."])
812812
];
813813

814-
let mut report_file = File::create("codestate_runall_report.txt")?;
814+
let mut report_file = File::create("output/codestate_runall_report.txt")?;
815815
writeln!(report_file, "CodeState --runall Test Report\n")?;
816816

817817
let exe_path = env::current_exe()?;
@@ -857,7 +857,7 @@ fn run_all_tests() -> Result<()> {
857857
println!("Failed: {}", fail_count);
858858
println!("Success Rate: {:.2}%", success_rate);
859859
println!("Time taken: {:?}", test_elapsed);
860-
println!("Details saved to codestate_runall_report.txt");
860+
println!("Details saved to output/codestate_runall_report.txt");
861861

862862
if fail_count > 0 {
863863
println!("\nFailed Tests:");

0 commit comments

Comments
 (0)