microsoft / typescript-analyze-trace

A tool for analyzing the output of `tsc --generateTrace`
MIT License
334 stars 19 forks source link

Add baseline tests #27

Open amcasey opened 2 years ago

amcasey commented 2 years ago

Matrix:

It needs to be possible to diff against the old baseline and accept the new baseline.

The biggest obstacle is likely to be source file lookup - real traces use absolute paths, but those won't be portable (e.g. to CI machines). Post-processing the trace files (i.e. test cases) to use forward-slash-delimited relative paths might suffice.