shortcut for rerun last test

Hi all,

do you know a shortcut for rerunning last unit test ?

Often I work on one unit test all day. And so I need to rerun the same test maybe 100 times a day. Currently I use the mouse to click "Run Selected Tests" button in "Unit Test Sessions" window.

I already know the shortcut to run enclosing test. But the most time I'm in another code which is called by the unit test. So this is not an option for me.


Regards
Markus

4 comments

Hello Markus,

You can assign a desired shortcut to 'ReSharper.ReSharper_UnitTest_RunCurrentSession'
command under Tools | Options | Environment | Keyboard. It will run the tests
in the current unit test session. Let me know if this helps. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi all,

do you know a shortcut for rerunning last unit test ?

Often I work on one unit test all day. And so I need to rerun the same
test maybe 100 times a day. Currently I use the mouse to click "Run
Selected Tests" button in "Unit Test Sessions" window.

I already know the shortcut to run enclosing test. But the most time
I'm in another code which is called by the unit test. So this is not
an option for me.

Regards
Markus
---
Original message URL:
http://devnet.jetbrains.net/message/5282657#5282657



0

Hi Andrej,

sorry it would not help me to run all tests in current session. I usually run sometimes (around 2 times the hour) all tests in my assembly, so the session contains more than only the last test.


Markus

0

Hello Markus,

You can copy that test to a new session (right click the test and choose
'Copy to New Session'), so that ReSharper.ReSharper_UnitTest_RunCurrentSession
runs that test only. The upcoming ReSharper 6.0 will also have 'Repeat previous
run' button and corresponding command. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi Andrej,

sorry it would not help me to run all tests in current session. I
usually run sometimes (around 2 times the hour) all tests in my
assembly, so the session contains more than only the last test.

Markus

---
Original message URL:
http://devnet.jetbrains.net/message/5283082#5283082



0

Ok that is an acceptable workaround. Thank you!


Markus

0

Please sign in to leave a comment.