# mstest

Published articles for mstest.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Test what you ship: MSTest and Native AOT

DevFeed: [Test what you ship: MSTest and Native AOT](<https://devfeed.tech/articles/test-what-you-ship-mstest-and-native-aot-2952.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/dotnet/mstest-source-generation/>)

Author: Amaury Levé

Published: 2026-09-03T18:00:00Z

Content type: article

Language: en

Sources: [.NET Blog](<https://devfeed.tech/sources/net-blog.md>)

Topics: [native aot](<https://devfeed.tech/topics/native-aot.md>), [trimming](<https://devfeed.tech/topics/trimming.md>), [.NET](<https://devfeed.tech/topics/net.md>), [Code generation](<https://devfeed.tech/topics/code-generation.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>)

Tags: [deployment](<https://devfeed.tech/tags/deployment.md>), [generation](<https://devfeed.tech/tags/generation.md>), [mstest](<https://devfeed.tech/tags/mstest.md>), [native-aot](<https://devfeed.tech/tags/native-aot.md>), [net](<https://devfeed.tech/tags/net.md>), [source-generators](<https://devfeed.tech/tags/source-generators.md>), [testing](<https://devfeed.tech/tags/testing.md>), [trimming](<https://devfeed.tech/tags/trimming.md>)

### AI overview

MSTest 4.4 uses source generation to let test projects run as Native AOT executables, helping teams test under the same trimming and deployment constraints as their applications. The article explains that this can reveal application issues such as reflection-dependent serialization that managed test runs may miss.

### Source excerpt

MSTest source generation lets test projects use the same Native AOT and trimming deployment model as the applications they validate, while reducing reflection on the test execution path. The post Test what you ship: MSTest and Native AOT appeared first on .NET Blog.

## Retry flaky tests with dotnet test and PowerShell

DevFeed: [Retry flaky tests with dotnet test and PowerShell](<https://devfeed.tech/articles/retry-flaky-tests-with-dotnet-test-and-powershell-20782.md>)

Original publisher: [Read original article](<https://conductofcode.io/post/retry-flaky-tests-with-dotnet-test-and-powershell/>)

Author: {"twitter"=\>"hlaueriksson"}

Published: 2023-03-26T19:00:00Z

Content type: tutorial

Language: en

Sources: [Henrik Lau Eriksson](<https://devfeed.tech/sources/henrik-lau-eriksson.md>)

Topics: [PowerShell](<https://devfeed.tech/topics/powershell.md>), [.NET](<https://devfeed.tech/topics/net.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Smoke Tests](<https://devfeed.tech/topics/smoke-tests.md>), [Playwright](<https://devfeed.tech/topics/playwright.md>), [Selenium](<https://devfeed.tech/topics/selenium.md>)

Tags: [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [cli](<https://devfeed.tech/tags/cli.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [flaky](<https://devfeed.tech/tags/flaky.md>), [jenkins](<https://devfeed.tech/tags/jenkins.md>), [mstest](<https://devfeed.tech/tags/mstest.md>), [nunit](<https://devfeed.tech/tags/nunit.md>), [playwright](<https://devfeed.tech/tags/playwright.md>), [powershell](<https://devfeed.tech/tags/powershell.md>), [retry](<https://devfeed.tech/tags/retry.md>), [selenium](<https://devfeed.tech/tags/selenium.md>), [test](<https://devfeed.tech/tags/test.md>), [testing](<https://devfeed.tech/tags/testing.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>), [xunit](<https://devfeed.tech/tags/xunit.md>)

### AI overview

This tutorial presents a PowerShell script that uses dotnet test and TRX result files to track failed tests, retry them, report the final result, and allow a configured percentage of failures. It demonstrates the script with NUnit, MSTest, and xUnit.

### Source excerpt

Introducing test.ps1, a script for running flaky tests - Keeps track of failing tests and retries them - Notifies the test framework of the current retry iteration - Makes it possible to accept a certain percentage of failing tests - Outputs the test result in a coherent way

## Unit Testing Tip: Create Descriptive Tests

DevFeed: [Unit Testing Tip: Create Descriptive Tests](<https://devfeed.tech/articles/unit-testing-tip-create-descriptive-tests-21200.md>)

Original publisher: [Read original article](<https://juri.dev/blog/2013/06/unit-testing-tip-create-descriptive-tests/>)

Published: 2013-06-16T00:00:00Z

Content type: tutorial

Language: en

Sources: [Juri Strumpflohner](<https://devfeed.tech/sources/juri-strumpflohner.md>)

Topics: [Testing](<https://devfeed.tech/topics/testing.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [debugger](<https://devfeed.tech/tags/debugger.md>), [junit](<https://devfeed.tech/tags/junit.md>), [mstest](<https://devfeed.tech/tags/mstest.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [unit-testing](<https://devfeed.tech/tags/unit-testing.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>)

### AI overview

This article presents a unit testing tip: make tests more descriptive. It recommends adding meaningful assertion messages and using explicit assertion types so failures show clearer information about the operation, expected value, and actual value.

### Source excerpt

Lorem ipsum dolor sit amet