Testing - test-containing assembly vs. add-in or workbook under test
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Không có tệp repository, entry point hoặc test hiện có nào được nêu tên; hãy bắt đầu bằng cách xác định triển khai kiểm thử Excel-DNA và tích hợp của nó với xUnit runner. Xác định những gì cần thiết để liên kết và tải một add-in hoặc workbook, sau đó kiểm tra thiết kế dựa trên các kịch bản integration test được mô tả cho VBA, .xll nhị phân, .xlam và workbook.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- C#
- Star
- 0
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Excel-DNA/DeveloperTools
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
Excel-DNA/DeveloperTools#24 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
Excel-DNA/DeveloperTools#16 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
Excel-DNA/DeveloperTools#15 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Excel-DNA/DeveloperTools#14 · 4 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Excel-DNA/DeveloperTools#10 · 1 bình luận ·
Tất cả issue của Excel-DNA/DeveloperTools
Issue tương tự
-
area/navigationview 🧭 difficulty/starter 🚀 good first issue kind/bug platform/all project/navigation-lifecycle 🧬 triage/untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
unoplatform/uno#24925 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DamianEdwards/ghcp-spend-tray#39 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
copilot documentation
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[Rust][Flaky Test] multiple_deadlines_fire_in_order asserts a wall-clock gap instead of firing orderĐang mởCI/CD ⚒️ Flaky-tests 🐦
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
valkey-io/valkey-glide#7255 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
unoplatform/Uno.Core#99 ·