Add SafeMode option to test settings for Excel launch#27
Add SafeMode option to test settings for Excel launch#27novitk wants to merge 1 commit intoExcel-DNA:masterfrom
Conversation
Introduce SafeMode property to ExcelFactAttribute, ExcelTestSettingsAttribute, ITestSettings, and ExcelTestSettings, allowing tests to specify launching Excel in safe mode (/safe). Update ExcelRunner and ExcelTestAssemblyRunner to support this option, and ensure SafeMode is serialized in ExcelTestCase. Improves test isolation and reliability by enabling safe mode for specific test cases. Documentation updated accordingly. Add support for running tests in Excel Safe Mode Introduce a SafeMode property to test settings, attributes, and runners, enabling Excel to be launched with the /safe switch for selected tests. Update process launching, test case serialization, and test discovery to support Safe Mode. Add a sample test using Safe Mode to improve test isolation and reliability.
|
What about adding a more general And add an additional example test instead of modifying existing |
|
What about adding a more general string ExcelArguments (?) option instead of bool SafeMode? And add an additional example test instead of modifying existing FunctionTestNET6() Feel free to modify or drop in whatever way you'd like though. I moved away from using this project to reduce dependencies and complexity - just spinning Excel directly in xunit fixture was simple enough. |
Introduce SafeMode property to ExcelFactAttribute, ExcelTestSettingsAttribute, allowing tests to specify launching Excel in safe mode (/safe). This basically allows to run tests in working area that avoids conflicts with other addins.