CommunityToolkit / CommunityToolkit/Tooling-Windows-Submodule

Enable AOT (Ahead-of-Time) Compilation in Tests

オープン
#256 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement nativeaot testing 🏗
主要言語
C#
スター
55
フォーク
19
平均マージ
40分
マージ済み PR(30日)
1

説明

## Background

While the original "why" behind AoT being disabled in tests is lost or unknown, the "why" behind enabling it now is known.

We are in the process of collecting and fixing the NativeAoT issues in the toolkit.

## Problem

We'd like to be able to test more of the codebase with AoT than the sample app provides.

We could use our test projects, but AoT would need to be enabled.

## Solution

Due to the nature of tests using shared projects, we're not able to toggle AoT for them individually.

We'll have to either *enable csproj support for tests* (see https://github.com/CommunityToolkit/Tooling-Windows-Submodule/issues/101) or *enable aot in all test projects simultaneously.*

We've made progress towards AoT recently, but the Gallery App can only tell us so much. We'll need the ability to validate AoT issues using unit tests to ensure proper coverage long-term.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、共有テストプロジェクトがどのように構成されているか、およびテストで csproj のサポートを有効にすることに関するリンクされた issue を確認します。すべてのテストプロジェクトで AoT を有効にする方法と、csproj のサポートを追加する方法を比較し、検証ポイントとして Gallery App と単体テストのカバレッジを検討します。テストプロジェクトで長期的に NativeAoT の問題を実行して検証できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
build-system, testing
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。