Are there shortcut keys for ReSharper's Unit Test Runner?

后端 未结 12 1522
旧时难觅i
旧时难觅i 2021-01-30 12:49

For obvious productivity reasons, I make an effort of learning and using as many of the keyboard shortcuts for the various Re# commands.

However, it seems that the unit

12条回答
  •  猫巷女王i
    2021-01-30 12:54

    Since the time I originally asked this question, this is what I have been using:

    Open 'Unit Test Explorer' and 'Unit Test Session' windows

    • use the keybindings available in ReSharper 4.5+

    Selecting a single test in 'Unit Test Session'

    • to select a test, use arrow keys to navigate

    Selecting multiple tests in 'Unit Test Session'

    • to select multiple continous tests, hold the Shift key down while navigating with the arrow keys
    • to select multiple non-continous tests, hold Ctrl key while using arrows keys and toggle Spacebar to select/deselect tests

    Run and execute tests in 'Unit Test Session'

    • press context menu button (found between the Alt and Ctrl buttons on most Windows-centric keyboards)

      or

    • alternatively, press Shift + F10

    • navigate with arrow keys within context window and hit Enter on any selection

      or

    • for Run Selected Tests, press r + Enter

    • for Debug Selected Tests, press d

    Select call stack error line hyperlinks

    • if a test fails and the call stack is displayed splitting the 'Session' window, press Tab to navigate from the test section to the error links in the lower section

    • after tabbing to a specific error line, hit Enter to go to line of code with the runtime error

    • press Shift + Tab mutliple times as necessary to go backwards from the call stack (lower) section back to the unit tests (upper) section

提交回复
热议问题