`[UIThreadTestMethod]` should have Analyzer to ensure parent class inherits from `VisualUITestBase`
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
まず、UIThreadTestMethod と EnqueueAsync の呼び出しを処理するソースジェネレーターを見つけ、次に VisualUITestBase を調べて必要な継承関係を確認します。VisualUITestBase を継承するクラスと継承しないクラスを対象とするテストがあり、無効な属性の使用に対してアナライザーが明確な案内を示せば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The Source Generator tries to call EnqueueAsync on the class, but this is a method from VisualUITestBase, so if you try and use the generator attribute without inheriting from the class, you can an error about it not finding the method.
We should have an analyzer here to help guide folks to knowing that they have to inherit from the class. That and/or we should figure out a way to capture the dispatcher at the right point in test initialization so that we can just use it for the generated methods without needing a special base class?
Steps to reproduce
Use `UIThreadTestMethod` in a class not inheriting from `VisualUITestBase`
Expected behavior
Help in guiding to the right path.
Screenshots
No response
Code Platform
- UWP
- WinAppSDK / WinUI 3
- Web Assembly (WASM)
- Android
- iOS
- MacOS
- Linux / GTK
Windows Build Number
- Windows 10 1809 (Build 17763)
- Windows 10 1903 (Build 18362)
- Windows 10 1909 (Build 18363)
- Windows 10 2004 (Build 19041)
- Windows 10 20H2 (Build 19042)
- Windows 10 21H1 (Build 19043)
- Windows 11 21H2 (Build 22000)
- Other (specify)
Other Windows Build number
No response
App minimum and target SDK version
- Windows 10, version 1809 (Build 17763)
- Windows 10, version 1903 (Build 18362)
- Windows 10, version 1909 (Build 18363)
- Windows 10, version 2004 (Build 19041)
- Other (specify)
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Additional context
No response
- 主要言語
- C#
- スター
- 57
- フォーク
- 20
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CommunityToolkit/Tooling-Windows-Submodule のほかの issue
-
Running WASM on All Solution Doesn't work in VS再び着手できるかも @Arlodotexe が 245 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug :bug: build :fire: regression sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#307 · コメント 2 件 · 担当者 1 名 ·
-
GenerateAllSolution with only wasm target won't build再び着手できるかも @Arlodotexe が 245 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug :bug: build :fire: sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#306 · コメント 1 件 · 担当者 1 名 ·
-
bug :bug:
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
-
Add basic usage docs for Build-Toolkit-Docs.ps1 script再び着手できるかも @Arlodotexe が 597 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンdocumentation :page_with_curl: low difficulty powershell
CommunityToolkit/Tooling-Windows-Submodule#282 · 担当者 1 名 ·
-
bug :bug: regression testing 🏗
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
CommunityToolkit/Tooling-Windows-Submodule の issue をすべて見る
似ている issue
-
area: core bug help wanted ready
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ZaidX88/sluice#265 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area: remote bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
CodeYourFuture/Module-Tools#712 ·
-
A: Mapping P3: Standard T: New Feature
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
space-wizards/space-station-14#46878 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 60/100
CommunityToolkit/Windows#896 · コメント 2 件 ·