Mrchief
Mrchief

Reputation: 76218

Testing visual studio extensions

Is there an alternate way to test VS 2010 extension projects? Right now I have to spin a new instance of VS 2010 and wait. This takes couple of minutes and would love to know if there's another way of doing it quickly.

Upvotes: 6

Views: 1865

Answers (1)

Chris
Chris

Reputation: 771

Depending on the project type you used to create your package (empty VSIX container or one of the extension projects from the SDK like Editor Margin, Text Adornment, ViewPort Adornment, etc) It will ask you if you want to create unit/integration tests.

The integration tests provide all the methods simulate the shell and allow you to test without actually spinning up the UI. Of course this depends if you need to do any visual verification, but if you're testing package load, service calls, pretty much anything else it's great.

Let me know how it goes.

Upvotes: 2

Related Questions