|
|
|
[
Permlink
| « Hide
]
Ilya Ryzhenkov - 12 Jan 07 19:27
Does it mean that you want to mark project specifically as Test Project and invoke Unit Test Runner instead of trying to execute it as separate process?
The idea is that I could invoke the standard VS Run/Debug commands (F5 for example or the toolbar icon) and this will result in Resharper running all tests included in this assembly. Just as if I did a right-click on the assembly and selected Run/Debug Unit tests.
How do we know if project is Test one or just regular project that should be run using ReSharper Unit Test Runner? Should it be some assembly-level attribute, project property or whatever else?
The ideal way in my eyes would be to integrate with the Debug section of the Project properties screen. It has a section called "Start Action" which contains 3 options:
Start project If it is possible to integrate or replace this screen, I would add a 4'th option: Run tests If it is not possible, then perhaps marking the project as you suggested. Another way to mark the project as a Test Runner project which is very loosely integrated and could be used should everything else fails is to specify as an external program either some special code work (such as "Resharper Test Runner") or a real external program (say TestRunner.exe )which can be detected by the IDE when selecting Run/Debug. I don't think it is possible to extend "Start Action" section. We'll check, but I doubt it is possible.
As for other ways, we'll consider making something similar in the one of the future versions. Thanks for suggestion! |
|||||||||||||||||||||||||||||||||||||||||||||||||