Info
Version: | 1.9.0-alpha2 |
Author(s): | Excel-DNA Developers |
Last Update: | Wednesday, August 14, 2024 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | http://excel-dna.net/ |
NuGet Url: | https://www.nuget.org/packages/ExcelDna.Testing |
Install
Install-Package ExcelDna.Testing
dotnet add package ExcelDna.Testing
paket add ExcelDna.Testing
ExcelDna.Testing Download (Unzip the "nupkg" after downloading)
Dependencies
- ExcelDna.Integration(>= 1.1.0 && <= 1.1.0)
- ExcelDna.Interop(>= 14.0.1 && <= 14.0.1)
- Microsoft.VisualStudio.OLE.Interop(>= 16.7.30328.74)
- xunit.runner.visualstudio(>= 2.4.3)
- xunit.abstractions(>= 2.0.3)
- xunit(>= 2.4.1)
- xunit.extensibility.core(>= 2.4.1)
- xunit.extensibility.execution(>= 2.4.1)
Tags
Test code is written in C# or Visual Basic and is hosted by the popular xUnit test framework, allowing automated tests to run from Visual Stuio or other standard test runners.
Tests developed with the testing helper will run with the add-in loaded inside an Excel instance, and so allow you to test the interaction between an add-in and a real instance of Excel. This type of 'integration testing' can augment 'unit testing' where individual library features are tested in isolation.
It is often in the interaction with Excel where the problematic aspects of an add-in are revealed, and developing automated testing for this environment has been difficult.
The testing helper allows flexibility and power in designing automated Excel tests:
* The test code can either run in a separate process that drives Excel through the COM object model, or can be loaded inside the Excel process itself, allowing use of both the COM object model and the C API from the test code.
* Functions, macros and even ribbon commands can be tested.
* Test projects can include pre-populated test workbooks containing spreadsheet models to test or test data.