PLC-lang / rusty

Structured Text Parser and LLVM Frontend
GNU Lesser General Public License v3.0
181 stars 47 forks source link

feat: show diagnostics in `panic` in `runner::compile` #1191

Closed mhasel closed 1 month ago

mhasel commented 1 month ago

Should a integration/correctness-test result in a diagnostic, we now panic with the diagnostic as message instead of calling unwrap on the result in runner::compile. This makes it easier to see the reason for why tests might have failed at a glance.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.62%. Comparing base (0037fa5) to head (de60e58).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1191 +/- ## ======================================= Coverage 95.62% 95.62% ======================================= Files 150 150 Lines 42655 42657 +2 ======================================= + Hits 40787 40789 +2 Misses 1868 1868 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.