Skip to content

Commit a335a9b

Browse files
authored
Merge pull request #10682 from changeworld/patch-1
Fix typo
2 parents 9cf7c11 + e5f5f58 commit a335a9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/test/customizing-code-coverage-analysis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ The following table shows the various ways that assemblies and members can be ma
108108
::: moniker range=">=vs-2022"
109109
### Code coverage formats
110110

111-
By default code coverage is collected and saved in a `.coverage` file. You can also collect coverage using other formats including Xml and Cobertura. Different formats may be useful across different editors and pipelines. You can enable this in runsettings by adding `<Format>Cobertura</Format>` or `<Format>Xml</Format>` in the [DataCollector configuration section in your runsettings file](../test/configure-unit-tests-by-using-a-dot-runsettings-file.md#codecoverage-data-collector). This format can be viewed in the code coverage results window in Visual Studio Enterprise.
111+
By default code coverage is collected and saved in a `.coverage` file. You can also collect coverage using other formats including XML and Cobertura. Different formats may be useful across different editors and pipelines. You can enable this in runsettings by adding `<Format>Cobertura</Format>` or `<Format>Xml</Format>` in the [DataCollector configuration section in your runsettings file](../test/configure-unit-tests-by-using-a-dot-runsettings-file.md#codecoverage-data-collector). This format can be viewed in the code coverage results window in Visual Studio Enterprise.
112112

113113
You can also specify different formats from the command-line by either specifying it in the runsettings file or specifying it in a parameter. For example, the dotnet command-line use `dotnet test --collect:"Code Coverage;Format=Cobertura"`. For vstest use `vstest.console.exe /collect:"Code Coverage;Format=Cobertura"`. The collect parameter will override the format specified in runsettings.
114114
::: moniker-end

docs/test/how-to-create-a-data-driven-unit-test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ The DataSource attribute has three constructors.
197197
[DataSource(dataSourceSettingName)]
198198
```
199199

200-
A constructor with one parameter uses connection information that is stored in the *app.config* file for the solution. The *dataSourceSettingsName* is the name of the Xml element in the config file that specifies the connection information.
200+
A constructor with one parameter uses connection information that is stored in the *app.config* file for the solution. The *dataSourceSettingsName* is the name of the XML element in the config file that specifies the connection information.
201201

202202
Using an *app.config* file allows you to change the location of the data source without making changes to the unit test itself. For information about how to create and use an *app.config* file, see [Walkthrough: Using a Configuration File to Define a Data Source](../test/walkthrough-using-a-configuration-file-to-define-a-data-source.md)
203203

0 commit comments

Comments
 (0)