feat(test): display test results in JSON format
This commit is contained in:
parent
6a8676f335
commit
f02d7e7e33
7 changed files with 799 additions and 419 deletions
|
|
@ -209,8 +209,8 @@ pub fn test_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;
|
||||
}
|
||||
|
|
@ -297,8 +297,8 @@ pub fn test_language_corpus(
|
|||
|
||||
if actual_output != test.output {
|
||||
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;
|
||||
}
|
||||
|
|
@ -428,8 +428,8 @@ fn test_feature_corpus_files() {
|
|||
if actual_output == test.output {
|
||||
true
|
||||
} else {
|
||||
println!("{DiffKey}");
|
||||
print!("{}", TestDiff::new(&actual_output, &test.output, true));
|
||||
DiffKey::print();
|
||||
print!("{}", TestDiff::new(&actual_output, &test.output));
|
||||
println!();
|
||||
false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue