Skip to content

Commit

Permalink
Merge branch 'main' into kcm-avx10v1-api-enablement
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal1996 authored May 9, 2024
2 parents 888fb45 + 315c4c4 commit b84e8fd
Show file tree
Hide file tree
Showing 1,925 changed files with 21,346 additions and 30,339 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
]
},
"microsoft.dotnet.xharness.cli": {
"version": "9.0.0-prerelease.24224.1",
"version": "9.0.0-prerelease.24252.1",
"commands": [
"xharness"
]
Expand Down
6 changes: 3 additions & 3 deletions docs/area-owners.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Note: Editing this file doesn't update the mapping used by `@msftbot` for area-s
| area-Debugger-mono | @tommcdon | @thaystg | |
| area-DependencyModel | @ericstj | @dotnet/area-dependencymodel | Included:<ul><li>Microsoft.Extensions.DependencyModel</li></ul> |
| area-Diagnostics-coreclr | @tommcdon | @tommcdon | |
| area-Diagnostics-mono | @tommcdon | @tommcdon @mdh1418 | |
| area-EnC-mono | @tommcdon | @mikelle-rogers | Hot Reload on WebAssembly, Android, iOS, etc . @lambdageek to consult |
| area-Diagnostics-mono | @tommcdon | @tommcdon @mdh1418 @thaystg | |
| area-EnC-mono | @tommcdon | @mikelle-rogers @thaystg | Hot Reload on WebAssembly, Android, iOS, etc . @lambdageek to consult |
| area-ExceptionHandling-coreclr | @mangod9 | @janvorli | |
| area-Extensions-Caching | @ericstj | @dotnet/area-extensions-caching | Consultants: @mgravell, @sebastienros |
| area-Extensions-Configuration | @ericstj | @dotnet/area-extensions-configuration | Consultants: @eerhardt |
Expand Down Expand Up @@ -141,7 +141,7 @@ Note: Editing this file doesn't update the mapping used by `@msftbot` for area-s
| area-Tools-ILLink | @agocke | @dotnet/illink | |
| area-Tools-ILVerification | @JulieLeeMSFT | @BruceForstall @dotnet/jit-contrib | |
| area-Tracing-coreclr | @tommcdon | @dotnet/area-tracing-coreclr | .NET runtime issues for EventPipe and ICorProfiler |
| area-Tracing-mono | @tommcdon | @tommcdon | |
| area-Tracing-mono | @tommcdon | @tommcdon @thaystg | |
| area-TypeSystem-coreclr | @steveisok | @davidwrighton @MichalStrehovsky @janvorli @mangod9 | |
| area-UWP | @tommcdon | @dotnet/area-uwp | UWP-specific issues including Microsoft.NETCore.UniversalWindowsPlatform and Microsoft.Net.UWPCoreRuntimeSdk |
| area-VM-coreclr | @mangod9 | @mangod9 | |
Expand Down
31 changes: 21 additions & 10 deletions docs/workflow/ci/disabling-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,26 @@ expedient to disable the test more broadly than possibly required.

## Disabling runtime tests (src/tests)

Most tests are disabled by adding the test to the appropriate place, under the appropriate configuration condition,
in the [issues.targets](../../../src/tests/issues.targets) file. All temporarily disabled tests must have a

### Disabling runtime tests (src/tests) with xunit attributes

The runtime tests use an XUnit-based model for test execution. There are [a number of attributes provided for filtering](../testing/libraries/filtering-tests.md)
based on different test modes. Here are some examples of attributes that can be applied to tests to prevent them from running in certain configurations:

- Prevent a test from running on Mono: `[SkipOnMono]`
- Prevent a test from running on CoreCLR: `[SkipOnCoreClr]`
- Prevent a test from running under GCStress: `[SkipOnCoreClr("Reason", RuntimeTestModes.AnyGCStress)]`
- Prevent a test from running under HeapVerify: `[SkipOnCoreClr("Reason", RuntimeTestModes.HeapVerify)]`
- Prevent a test from running under JIT stress modes: `[SkipOnCoreClr("Reason", RuntimeTestModes.AnyJitStress)]`

Additionally, the `ConditionalFact`, `ConditionalTheory`, `PlatformSpecific`, and `ActiveIssue` attributes are available for usage to disable or enable tests only on specific platforms or configurations.

Some test modes are processed at the assembly level. For these tests, you should mark the tests as `<RequiresProcessIsolation>true</RequiresProcessIsolation>` and set one of the attributes in the following section.

### Disabling runtime tests (src/tests) with issues.targets

Out-of-process tests are disabled by adding the test to the appropriate place, under the appropriate configuration condition,
in the [issues.targets](../../../src/tests/issues.targets) file. Additionally, tests that are the only `[Fact]`-attributed method in their assembly may be disabled through issues.targets. All temporarily disabled tests must have a
link to a GitHub issue in the `<Issue>` element. Disabling a test here can be conditioned on processor
architecture, runtime, and operating system.

Expand All @@ -64,15 +82,8 @@ Note that these properties can be conditional, e.g.:

More information about writing/adding tests to src/tests can be found [here](../testing/coreclr/test-configuration.md).

## Disabling runtime tests (src/tests) with xunit attributes

When this document was written, the src/tests tree was in the process of being converted to a new
execution model (see [dotnet/runtime#54512](https:/dotnet/runtime/issues/54512)). This model annotates tests with xunit-style
`[Fact]` attributes. For tests which have been converted to this form, all the xunit attributes related to test disabling
described in the "src/libraries" section below are also applicable.

## Disabling libraries tests (src/libraries)

Information on disabling libraries tests is found [here](../testing/libraries/filtering-tests.md).

In particular, look at `ActiveIssueAttribute`, `SkipOnCoreClrAttribute`, and `SkipOnMonoAttribute`.
In particular, look at `ActiveIssueAttribute`, `SkipOnCoreClrAttribute`, and `SkipOnMonoAttribute`.
Loading

0 comments on commit b84e8fd

Please sign in to comment.