History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-34102
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Ilya Ryzhenkov
Reporter: Andrew Serebryansky
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

Associate startup project with test project

Created: 05 Jan 07 14:04   Updated: 13 Jan 07 18:57
Component/s: Unit Testing
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 326


 Description  « Hide
Make it possible to associate the Run/Debug commands of the IDE with Run/Debug tests. This way, I could set the startup project to be my test project and just hit F5 as I would usually do with any other project. Perhaps this is already possible?

 All   Comments   Work Log   Change History      Sort Order:
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?

Alon Albert - 12 Jan 07 22:02
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.

Ilya Ryzhenkov - 13 Jan 07 13:02
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?

Alon Albert - 13 Jan 07 18:30
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
Start external program
Star browser with URL

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.


Ilya Ryzhenkov - 13 Jan 07 18:56
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!