1
1
# Testing managed tools
2
2
3
- Managed unit and functional tests for a number of tools are included in the product including the
4
- compiler for NativeAOT, and the trimmer (illink)
3
+ There are managed unit and functional tests for a number of tools including the
4
+ compiler for NativeAOT ( ` ILCompiler ` ) , and the trimmer (` illink ` ).
5
5
6
6
## Adding new testsuites
7
7
8
- To add new test suite, create a new ` .csproj ` with a name that ends in ` Tests ` , such as:
8
+ To add a new test suite, create a new ` .csproj ` with a name that ends in ` Tests ` , such as:
9
9
` MyTool.Tests.csproj ` . The property ` IsTestProject ` will be set by the ` Directories.Build.props ` in
10
10
the repository root. The property will, in turn, add references to the xunit package and the
11
11
apropriate test runner.
12
12
13
- Now add a ` ProjectToBuild ` item to ` eng/Substes.props ` to one of the existing subsets such as
14
- ` clr.toolstests ` or add a new subset.
13
+ Now add a ` ProjectToBuild ` item in ` eng/Substes.props ` to one of the existing subsets, such as
14
+ ` clr.toolstests ` , or a new subset.
15
15
16
16
## Adding new testsuites to CI
17
17
18
18
To run the tests in CI, add a new pipeline or add to an exsiting pipeline such as ` CLR_Tools_Tests `
19
19
in ` eng/pipelines/runtime.yml ` . Update the trigger condition, perhaps by adding a new set of paths
20
20
to ` eng/pipelines/common/evaluate-default-paths.yml ` in order to run the tests when the tool source
21
- or the test sources change./
21
+ or the test sources change.
22
22
23
23
## Running tests locally
24
24
@@ -41,6 +41,5 @@ The `dotnet-test` xunit filter mechanisms work to run a single test or a subset
41
41
```
42
42
43
43
The above command runs all tests whose fully-qualified name contains the substring ` MyTest ` . See
44
- [ dotnet test - Run selective unit
45
- test] ( https://learn.microsoft.com/en-us/dotnet/core/testing/selective-unit-tests?pivots=mstest#syntax )
44
+ [ dotnet test - Run selective unit tests] ( https://learn.microsoft.com/en-us/dotnet/core/testing/selective-unit-tests?pivots=mstest#syntax )
46
45
for the full syntax.
0 commit comments