dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.55k stars 4.54k forks source link

Add tests for MSBuild tasks in `src/tasks` #79010

Open radical opened 1 year ago

radical commented 1 year ago

Currently, there are no unit tests for the msbuild tasks in src/tasks. For wasm, there are some limited tests for PInvokeTableGenerator in src/mono/wasm/Wasm.Build.Tests, but these perform full builds which are not always necessary.

Instead, the msbuild tasks should have their own unit tests in src/tests which can be targeted, and much lighter to run.

Examples for tests to add:

This should be applicable for mobile tasks too.

cc @maraf @ilonatommy @lewing @steveisok

radical commented 1 year ago

@maraf did we have an existing issue for this?

maraf commented 1 year ago

@maraf did we have an existing issue for this?

I don't know of any