Nexus-Mods / NexusMods.App

Home of the development of the Nexus Mods App
https://nexus-mods.github.io/NexusMods.App/
GNU General Public License v3.0
908 stars 44 forks source link

Add diagnostic testing framework #1455

Open erri120 opened 4 months ago

erri120 commented 4 months ago

Framework for testing the generated diagnostics. Tests should do the following:

1) Setup: Create a loadout that should produce a set of diagnostics. 2) Act: Run one or more diagnostic emitters on the loadout. 3) Assert: Produced diagnostics match expected diagnostics

For assertion, the diagnostic should be rendered to markdown and the result should be compared to a snapshot using Verify.

erri120 commented 3 months ago

Should be done after #1336.