JetBrains Rider 2019.2 Help

Using Continuous Testing

The concept of continuous testing implies that you have actual test results instantly, as soon as you've changed your code. Thus, there's no need to manually rebuild the project and re-run all tests after making changes: the impacted tests are run in the background automatically (the testing session is triggered by some explicit action, for example, saving changes or building the project).

To enable continuous testing in a solution

  1. Press Ctrl+Alt+S, or alternatively from the main menu, choose File | Settings on Windows and Linux or JetBrains Rider | Preferences on macOS, then choose Build, Execution, Deployment | Unit Testing | Continuous Testing on the left.

  2. Specify when you need to rerun tests: either after you save the solution, or after you build it (the default option).

    JetBrains Rider: Continuous Testing settings

  3. Create a new unit testing session, or open one that has the scope you want to cover by continuous testing. If you don't have any sessions yet, you can use the Unit Test Explorer window to create one.

  4. In the opened session tab, select a continuous testing mode for your session. For example, if you want JetBrains Rider to autorun tests and get coverage each time you save or build the solution, select Cover New and Outdated Tests. Learn more about continuous testing modes.

  5. Coverage results will be shown in a separate Unit Tests Coverage window.

  6. That's it! Now, simply start working as usual: change code, build or save (as needed), and see test results in real time.

Last modified: 22 October 2019