feat(test): display test results in JSON format

This commit is contained in:
WillLillis 2025-09-28 22:57:56 -04:00 committed by Will Lillis
parent 6a8676f335
commit f02d7e7e33
7 changed files with 799 additions and 419 deletions

View file

@ -183,8 +183,8 @@ pub fn fuzz_language_corpus(
if actual_output != test.output {
println!("Incorrect initial parse for {test_name}");
println!("{DiffKey}");
println!("{}", TestDiff::new(&actual_output, &test.output, true));
DiffKey::print();
println!("{}", TestDiff::new(&actual_output, &test.output));
println!();
return false;
}
@ -276,8 +276,8 @@ pub fn fuzz_language_corpus(
if actual_output != test.output && !test.error {
println!("Incorrect parse for {test_name} - seed {seed}");
println!("{DiffKey}");
println!("{}", TestDiff::new(&actual_output, &test.output, true));
DiffKey::print();
println!("{}", TestDiff::new(&actual_output, &test.output));
println!();
return false;
}