stryker-mutator / stryker-net

Mutation testing for .NET core and .NET framework!
https://stryker-mutator.io
Apache License 2.0
1.79k stars 188 forks source link

Error when referencing Blazor WASM #2445

Open Iceeman76 opened 1 year ago

Iceeman76 commented 1 year ago

Running Stryker on a bUnit test project using MSTest referencing a BlazorWasm-project generates alot of error messages and are unable to perform the test

Logs [17:50:53 WRN] Stryker.NET encountered an compile error in C:\Private\BlazorApp\BlazorWasm\Program.cs (at 2:6) with message: The type or namespace name 'BlazorWasm' could not be found (are you missing a using directive or an assembly reference?) (Source code: BlazorWasm) [17:50:53 WRN] Safe Mode! Stryker will try to continue by rolling back all mutations in method. This should not happen, please report this as an issue on github with the previous error message.

Also same error occurs but with 'App' instead of 'BlazorWasm'

Same test works if the project is BlazorServer instead of a WASM

rouke-broersma commented 1 year ago

Blazor and web assembly are not supported targets.

Iceeman76 commented 1 year ago

Any plans suppoting it anytime?

rouke-broersma commented 1 year ago

Sure, some time, maybe. No immediate plans unless someone does the research.