Web Applications Using IIS
In Visual Studio:
In dotCover standalone application:
With dotCover, you can run coverage analysis for web applications on IIS servers.
Before you start profiling a web application make sure that:
IIS is installed on your computer.
Your web application is deployed to IIS.
Caching in your web browser is disabled. Alternatively, use Ctrl+F5 to manually refresh the page that is running the profiled application.
dotCover is run on behalf of Administrator.
To start a coverage run on IIS server
- Do one of the following:
In Visual Studio, press Ctrl+Alt+K K or choosefrom the main menu
In dotCover standalone application, press Ctrl+Alt+K K or choosein the menu.
In the Coverage Configuration dialog that appears, choose IIS.
Note that you must have Administrator permissions to start a coverage run on IIS server.
Select the Open URL check box and type the URL of your web application. If necessary, change the browser that should be used.
- Optionally, select the Advanced check box to configure additional settings:
- Click Run. dotCover will open the Coverage Controller dialog and then
start the IIS server.You need then navigate to your application web page in a browser or press Ctrl+F5 to refresh the page.
If the Run Browser check box is selected, dotCover will start the selected web browser or open a new web page tab at the specified URL.
If the Collect profiling data from start check box was selected, the coverage run starts immediately. Otherwise, dotCover waits until you click Start in the Coverage Controller dialog. When the coverage run is started, you can record code coverage.