bUnit-dev / bUnit

bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer.
https://bunit.dev
MIT License
1.14k stars 107 forks source link

`WrapperElementsGenerator` cachable #1397

Open linkdotnet opened 8 months ago

linkdotnet commented 8 months ago

In its current shape the WrapperElementsGenerator does return IncrementalValuesProvider<ISymbol>. As this isn't cacheable the pipeline get's triggered with every new build of the bunit.web project.

To tackle this we need a collect and execute phase where in the collect phase we retrieve all elements and store them into our own record type so hashing across runs is stable.