Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions samples/public/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project>

<PropertyGroup>
<AspireTestingVersion>9.5.1</AspireTestingVersion>
<CodeCoverageVersion>18.1.0</CodeCoverageVersion>
<MSTestVersion>4.0.2</MSTestVersion>
<MSTestAOTVersion>2.0.0-alpha.25561.4</MSTestAOTVersion>
<PlaywrightVersion>1.56.0</PlaywrightVersion>
<TestingPlatformVersion>2.0.2</TestingPlatformVersion>
<AspireTestingVersion>13.1.0</AspireTestingVersion>
<CodeCoverageVersion>18.14.1</CodeCoverageVersion>
<MSTestVersion>4.1.0</MSTestVersion>
<MSTestAOTVersion>2.0.0-alpha.26103.11</MSTestAOTVersion>
<PlaywrightVersion>1.58.0</PlaywrightVersion>
<TestingPlatformVersion>2.1.0</TestingPlatformVersion>
<VSTestVersion>18.0.1</VSTestVersion>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<NoWarn>$(NoWarn);SA0001;EnableGenerateDocumentationFile</NoWarn>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
#nullable enable
Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext
Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.AddProperty(string! propertyName, string! propertyValue) -> void
Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.ClearDiagnosticMessages() -> void
Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.Context.get -> Microsoft.VisualStudio.TestTools.UnitTesting.TestContext!
Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.DisplayMessage(Microsoft.VisualStudio.TestTools.UnitTesting.MessageLevel messageLevel, string! message) -> void
Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.GetDiagnosticMessages() -> string?
Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.GetResultFiles() -> System.Collections.Generic.IList<string!>?
Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.SetDataConnection(object? dbConnection) -> void
Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.SetDataRow(object? dataRow) -> void
Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.SetDisplayName(string? displayName) -> void
Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.SetException(System.Exception? exception) -> void
Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.SetOutcome(Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestOutcome outcome) -> void
Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.SetTestData(object?[]? data) -> void
Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.TryGetPropertyValue(string! propertyName, out object? propertyValue) -> bool
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
#nullable enable
*REMOVED*Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext
*REMOVED*Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.AddProperty(string! propertyName, string! propertyValue) -> void
*REMOVED*Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.ClearDiagnosticMessages() -> void
*REMOVED*Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.Context.get -> Microsoft.VisualStudio.TestTools.UnitTesting.TestContext!
*REMOVED*Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.DisplayMessage(Microsoft.VisualStudio.TestTools.UnitTesting.MessageLevel messageLevel, string! message) -> void
*REMOVED*Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.GetDiagnosticMessages() -> string?
*REMOVED*Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.GetResultFiles() -> System.Collections.Generic.IList<string!>?
*REMOVED*Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.SetDataConnection(object? dbConnection) -> void
*REMOVED*Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.SetDataRow(object? dataRow) -> void
*REMOVED*Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.SetDisplayName(string? displayName) -> void
*REMOVED*Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.SetException(System.Exception? exception) -> void
*REMOVED*Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.SetOutcome(Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestOutcome outcome) -> void
*REMOVED*Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.SetTestData(object?[]? data) -> void
*REMOVED*Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestContext.TryGetPropertyValue(string! propertyName, out object? propertyValue) -> bool
24 changes: 23 additions & 1 deletion src/Analyzers/MSTest.Analyzers/AnalyzerReleases.Shipped.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
## Release 4.0.0
## Release 4.1.0

### New Rules

Rule ID | Category | Severity | Notes
--------|----------|----------|-------
MSTEST0058 | Usage | Info | AvoidAssertsInCatchBlocksAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0058)
MSTEST0059 | Usage | Warning | DoNotUseParallelizeAndDoNotParallelizeTogetherAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0059)
MSTEST0060 | Usage | Warning | DuplicateTestMethodAttributeAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0060)
MSTEST0061 | Usage | Info | UseOSConditionAttributeInsteadOfRuntimeCheckAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0061)
MSTEST0062 | Usage | Warning | AvoidOutRefTestMethodParametersAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0062)
MSTEST0063 | Usage | Warning | TestClassConstructorShouldBeValidAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0063)

### Changed Rules

Rule ID | New Category | New Severity | Old Category | Old Severity | Notes
--------|--------------|--------------|--------------|--------------|-------
MSTEST0001 | Performance | Info | Performance | Warning | UseParallelizeAttributeAnalyzer
MSTEST0023 | USage | Info | Usage | Warning | DoNotNegateBooleanAssertionAnalyzer
MSTEST0037 | USage | Info | Usage | Warning | UseProperAssertMethodsAnalyzer
MSTEST0045 | USage | Info | Usage | Warning | UseCooperativeCancellationForTimeoutAnalyzer

## Release 4.0.0

### New Rules

Expand Down
20 changes: 0 additions & 20 deletions src/Analyzers/MSTest.Analyzers/AnalyzerReleases.Unshipped.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,2 @@
; Unshipped analyzer release
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md

### New Rules

Rule ID | Category | Severity | Notes
--------|----------|----------|-------
MSTEST0058 | Usage | Info | AvoidAssertsInCatchBlocksAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0058)
MSTEST0059 | Usage | Warning | DoNotUseParallelizeAndDoNotParallelizeTogetherAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0059)
MSTEST0060 | Usage | Warning | DuplicateTestMethodAttributeAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0060)
MSTEST0061 | Usage | Info | UseOSConditionAttributeInsteadOfRuntimeCheckAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0061)
MSTEST0062 | Usage | Warning | AvoidOutRefTestMethodParametersAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0062)
MSTEST0063 | Usage | Warning | TestClassConstructorShouldBeValidAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0063)

### Changed Rules

Rule ID | New Category | New Severity | Old Category | Old Severity | Notes
--------|--------------|--------------|--------------|--------------|-------
MSTEST0001 | Performance | Info | Performance | Warning | UseParallelizeAttributeAnalyzer
MSTEST0023 | USage | Info | Usage | Warning | DoNotNegateBooleanAssertionAnalyzer
MSTEST0037 | USage | Info | Usage | Warning | UseProperAssertMethodsAnalyzer
MSTEST0045 | USage | Info | Usage | Warning | UseCooperativeCancellationForTimeoutAnalyzer
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
#nullable enable
[TPEXP]Microsoft.Testing.Extensions.AzureFoundry.TestApplicationBuilderExtensions
[TPEXP]static Microsoft.Testing.Extensions.AzureFoundry.TestApplicationBuilderExtensions.AddAzureOpenAIChatClientProvider(this Microsoft.Testing.Platform.Builder.ITestApplicationBuilder! testApplicationBuilder) -> void
Microsoft.Testing.Extensions.AzureFoundry.TestingPlatformBuilderHook
static Microsoft.Testing.Extensions.AzureFoundry.TestingPlatformBuilderHook.AddExtensions(Microsoft.Testing.Platform.Builder.ITestApplicationBuilder! testApplicationBuilder, string![]! _) -> void
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#nullable enable
[TPEXP]Microsoft.Testing.Extensions.AzureFoundry.TestApplicationBuilderExtensions
Microsoft.Testing.Extensions.AzureFoundry.TestingPlatformBuilderHook
[TPEXP]static Microsoft.Testing.Extensions.AzureFoundry.TestApplicationBuilderExtensions.AddAzureOpenAIChatClientProvider(this Microsoft.Testing.Platform.Builder.ITestApplicationBuilder! testApplicationBuilder) -> void
static Microsoft.Testing.Extensions.AzureFoundry.TestingPlatformBuilderHook.AddExtensions(Microsoft.Testing.Platform.Builder.ITestApplicationBuilder! testApplicationBuilder, string![]! _) -> void
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
#nullable enable
[TPEXP]Microsoft.Testing.Extensions.OpenTelemetryProviderExtensions
[TPEXP]static Microsoft.Testing.Extensions.OpenTelemetryProviderExtensions.AddOpenTelemetryProvider(this Microsoft.Testing.Platform.Builder.ITestApplicationBuilder! builder, System.Action<OpenTelemetry.Trace.TracerProviderBuilder!>? withTracing = null, System.Action<OpenTelemetry.Metrics.MeterProviderBuilder!>? withMetrics = null) -> void
[TPEXP]static Microsoft.Testing.Extensions.OpenTelemetryProviderExtensions.AddTestingPlatformInstrumentation(this OpenTelemetry.Metrics.MeterProviderBuilder! builder) -> OpenTelemetry.Metrics.MeterProviderBuilder!
[TPEXP]static Microsoft.Testing.Extensions.OpenTelemetryProviderExtensions.AddTestingPlatformInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder! builder) -> OpenTelemetry.Trace.TracerProviderBuilder!
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#nullable enable
[TPEXP]Microsoft.Testing.Extensions.OpenTelemetryProviderExtensions
[TPEXP]static Microsoft.Testing.Extensions.OpenTelemetryProviderExtensions.AddOpenTelemetryProvider(this Microsoft.Testing.Platform.Builder.ITestApplicationBuilder! builder, System.Action<OpenTelemetry.Trace.TracerProviderBuilder!>? withTracing = null, System.Action<OpenTelemetry.Metrics.MeterProviderBuilder!>? withMetrics = null) -> void
[TPEXP]static Microsoft.Testing.Extensions.OpenTelemetryProviderExtensions.AddTestingPlatformInstrumentation(this OpenTelemetry.Metrics.MeterProviderBuilder! builder) -> OpenTelemetry.Metrics.MeterProviderBuilder!
[TPEXP]static Microsoft.Testing.Extensions.OpenTelemetryProviderExtensions.AddTestingPlatformInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder! builder) -> OpenTelemetry.Trace.TracerProviderBuilder!
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ static Microsoft.Testing.Extensions.VSTestBridge.Helpers.TestApplicationBuilderE
static Microsoft.Testing.Extensions.VSTestBridge.Helpers.TestApplicationBuilderExtensions.AddTestCaseFilterService(this Microsoft.Testing.Platform.Builder.ITestApplicationBuilder! builder, Microsoft.Testing.Platform.Extensions.IExtension! extension) -> void
static Microsoft.Testing.Extensions.VSTestBridge.Helpers.TestApplicationBuilderExtensions.AddTestRunParametersService(this Microsoft.Testing.Platform.Builder.ITestApplicationBuilder! builder, Microsoft.Testing.Platform.Extensions.IExtension! extension) -> void
virtual Microsoft.Testing.Extensions.VSTestBridge.SynchronizedSingleSessionVSTestBridgedTestFramework.Dispose(bool disposing) -> void
virtual Microsoft.Testing.Extensions.VSTestBridge.VSTestBridgedTestFrameworkBase.AddAdditionalProperties(Microsoft.Testing.Platform.Extensions.Messages.TestNode! testNode, Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase! testCase) -> void
virtual Microsoft.Testing.Extensions.VSTestBridge.VSTestBridgedTestFrameworkBase.UseFullyQualifiedNameAsTestNodeUid.get -> bool
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#nullable enable
virtual Microsoft.Testing.Extensions.VSTestBridge.VSTestBridgedTestFrameworkBase.AddAdditionalProperties(Microsoft.Testing.Platform.Extensions.Messages.TestNode! testNode, Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase! testCase) -> void
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
#nullable enable
[TPEXP]Microsoft.Testing.Platform.AI.ChatClientProviderExtensions
[TPEXP]Microsoft.Testing.Platform.AI.IChatClientProvider
[TPEXP]Microsoft.Testing.Platform.AI.IChatClientProvider.CreateChatClientAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<Microsoft.Extensions.AI.IChatClient!>!
[TPEXP]Microsoft.Testing.Platform.AI.IChatClientProvider.HasToolsCapability.get -> bool
[TPEXP]Microsoft.Testing.Platform.AI.IChatClientProvider.IsAvailable.get -> bool
[TPEXP]Microsoft.Testing.Platform.AI.IChatClientProvider.ModelName.get -> string!
[TPEXP]static Microsoft.Testing.Platform.AI.ChatClientProviderExtensions.AddChatClientProvider(this Microsoft.Testing.Platform.Builder.ITestApplicationBuilder! testApplicationBuilder, System.Func<System.IServiceProvider!, Microsoft.Testing.Platform.AI.IChatClientProvider!>! chatClientProvider) -> void
[TPEXP]static Microsoft.Testing.Platform.AI.ChatClientProviderExtensions.GetChatClientAsync(this System.IServiceProvider! serviceProvider, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<Microsoft.Extensions.AI.IChatClient?>!
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
#nullable enable
[TPEXP]Microsoft.Testing.Platform.AI.ChatClientProviderExtensions
[TPEXP]static Microsoft.Testing.Platform.AI.ChatClientProviderExtensions.AddChatClientProvider(this Microsoft.Testing.Platform.Builder.ITestApplicationBuilder! testApplicationBuilder, System.Func<System.IServiceProvider!, Microsoft.Testing.Platform.AI.IChatClientProvider!>! chatClientProvider) -> void
[TPEXP]static Microsoft.Testing.Platform.AI.ChatClientProviderExtensions.GetChatClientAsync(this System.IServiceProvider! serviceProvider, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<Microsoft.Extensions.AI.IChatClient?>!
[TPEXP]Microsoft.Testing.Platform.AI.IChatClientProvider
[TPEXP]Microsoft.Testing.Platform.AI.IChatClientProvider.CreateChatClientAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<Microsoft.Extensions.AI.IChatClient!>!
[TPEXP]Microsoft.Testing.Platform.AI.IChatClientProvider.HasToolsCapability.get -> bool
[TPEXP]Microsoft.Testing.Platform.AI.IChatClientProvider.IsAvailable.get -> bool
[TPEXP]Microsoft.Testing.Platform.AI.IChatClientProvider.ModelName.get -> string!
Loading
Loading