Skip to content

Add SafeMode option to test settings for Excel launch#27

Open
novitk wants to merge 1 commit intoExcel-DNA:masterfrom
novitk:master
Open

Add SafeMode option to test settings for Excel launch#27
novitk wants to merge 1 commit intoExcel-DNA:masterfrom
novitk:master

Conversation

@novitk
Copy link
Copy Markdown

@novitk novitk commented Apr 15, 2026

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant