testfx icon indicating copy to clipboard operation
testfx copied to clipboard

Add basic support for native AOT

Open Evangelink opened this issue 1 year ago • 1 comments

Summary

Add a first version support of native AOT to collect feedback from users and decide how much invest in this direction. For this first version of support, we should aim at detecting/supporting:

  • Test methods
  • Parameterized test methods through [DataRow] and [DynamicData]

Evangelink avatar Feb 09 '24 17:02 Evangelink

Nice one! I think the main problem is a lack of support by some libraries. I have opened two issues for two libraries, including one from Microsoft, to support NativeAOT. The big problem is Newtonsoft.Json, which is still widely used and will not support NativeAOT. But it’s nice to hear that MSTest is future-oriented. A year ago, I decided to move from xUnit to MSTest in our company project because of the higher activity in your project.

SymbioticKilla avatar Feb 09 '24 19:02 SymbioticKilla

@SymbioticKilla please see https://github.com/microsoft/testfx/issues/1837#issuecomment-1973325577 for a super early preview of running MSTest tests in native aot. Further work will be tracked in that issue.

nohwnd avatar Mar 01 '24 14:03 nohwnd