Testing - test-containing assembly vs. add-in or workbook under test
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
リポジトリのファイル、エントリポイント、既存のテストは指定されていません。まず Excel-DNA のテスト実装と xUnit runner との統合を見つけてください。アドインまたはブックを関連付けて読み込むために必要なものを定義し、説明されている VBA、バイナリ .xll、.xlam、およびブックの統合テストシナリオに照らして設計を検証してください。
索引モデルが issue の本文から書いたものです。
説明
Normally the test assembly would have a reference to the assembly-under-test, and when running tests it will load and exercise the code inside the assembly-under-test.
For the Excel-DNA testing we might not have that direct link. We should e.g. cover that case where the add-in-under-test is actually written in VBA, or we only have a binary .xll of the add-in under test. Then the test code will consist of C# code that tests the add-in functions and other features by driving (through the COM object model) an instance of Excel where the add-in gets loaded, and then exercised.
I'm not sure what the best way is to associate the test code with a particular add-in for testing. There might be two cases,
- one where the add-in is part of the solution where the test code lives, and so can be referenced directly even if the code in the add-in is sometimes called directly while testing, and other times exercised through Excel.
- one cases where the add-in-under-test is declared only by a path or an add-in name, and then it is loaded or activated in Excel but not referenced directly by the assembly with the tests in. In this case we need some way in the test code to declare what add-in or other workbook(s) is required to be loaded in Excel before the tests execute. There's a question here of where to find these files too, maybe in paths relative to . . . somewhere? . . .
So one scenario I'd like to cover with the Excel-DNA testing is to create integration tests for VBA code (in an .xlam add-in or just behind a workbook) as well as tests for workbooks without any code. The tests are written in C# / VB.NET and run with any xUnit runner. So beyond the loading and running environment, we might imagine some helpers classes that make it easier to set code or formulas inside a workbook, let it calculate and then check results.
That idea is somewhat similar to what the XlWings guy discusses here: https://www.xlwings.org/blog/unittests-for-microsoft-excel
- 主要言語
- C#
- スター
- 0
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Excel-DNA/DeveloperTools のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
Excel-DNA/DeveloperTools#24 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
Excel-DNA/DeveloperTools#16 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
Excel-DNA/DeveloperTools#15 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Excel-DNA/DeveloperTools#14 · コメント 4 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Excel-DNA/DeveloperTools#10 · コメント 1 件 ·
Excel-DNA/DeveloperTools の 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