Add App UI testing project
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- csharp
- 領域
- desktop, testing-qa
調査の方向性
まず既存の Tests.App プロジェクトと提案されている Tests.App.UI プロジェクトを比較し、次に issue に記載されている DependencyObjectSelectorTest.cs のセットアップを再現します。最初に WinUI 3 テンプレートのセットアップと、Microsoft.NET.Test.Sdk および UITestMethodAttribute のエラーを確認してください。別の UI テストプロジェクトで、報告されている entry-point または XAML 読み込みの失敗なしに、ウィンドウの DispatchQueue 内で UI スレッド上のテストを起動できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
We need a separate project for testing UI-related code from the App project. We currently have Tests.App but we probably should add Tests.App.UI as a separate project.
Test code needs to be launched on a UI thread inside of a window's DispatchQueue.
I've tried doing the following in a new solution to see how feasible it is to do, but have run into issue after issue:
- create
Appproject from winui3 template - create
AppTestproject from winui3 unit testing template - add
DependencyObjectSelector.cstoApp(which doesn't depend on anything so it's just a simple copy/paste and change namespace) - add
DependencyObjectSelectorTest.cstoAppTest, and accept the suggestion to add a project reference toApp - click the greyed out test run icon beside the test method, accept the prompt to install
Microsoft.NET.Test.Sdk
click the green test run icon Program has more than one entry point defined. Compile with /main to specify the type that contains the entry point.- add
<StartupObject>AppTest.Program</StartupObject>(which is the XAML generated main from winui 3) An unhandled exception was thrown by the 'Execute' method. Please report this error to the author of the attribute 'Microsoft.VisualStudio.TestTools.UnitTesting.AppContainer.UITestMethodAttribute'.
I've also tried using the entry point from Microsoft.NET.Test.Sdk (which is empty) and doing winui 3 startup in an AssemblyInitializer, and it gets a bit further but I run into XAML loading issues.
- 主要言語
- C#
- スター
- 29
- フォーク
- 12
- 平均マージ
- 4時間 15分
- マージ済み PR(30日)
- 2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/coder-desktop-windows のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
coder/coder-desktop-windows#166 ·
-
CoderVPN Unsigned オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
coder/coder-desktop-windows#179 · コメント 3 件 ·
-
bug coder-desktop networking
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
coder/coder-desktop-windows#177 · コメント 2 件 ·
-
bug coder-desktop
coder/coder-desktop-windows#171 · コメント 1 件 · 担当者 1 名 ·
-
bug github-sync
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
coder/coder-desktop-windows#170 ·
coder/coder-desktop-windows の issue をすべて見る
似ている issue
-
core dependencies
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
bug frontend good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Down / Waiting for removal
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100