#xunit — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #xunit, aggregated by home.social.
-
via @dotnet : Test reporting in Microsoft.Testing.Platform: from red build to root cause
https://ift.tt/Pmqt8rZ
#MTP #MicrosoftTestingPlatform #TestReporting #dotnet #CI #GitHubActions #AzureDevOps #MSTest #NUnit #xUnit #TUnit #Expecto #testreports #TRX #HTMLRep… -
via @dotnet : Test reporting in Microsoft.Testing.Platform: from red build to root cause
https://ift.tt/Pmqt8rZ
#MTP #MicrosoftTestingPlatform #TestReporting #dotnet #CI #GitHubActions #AzureDevOps #MSTest #NUnit #xUnit #TUnit #Expecto #testreports #TRX #HTMLRep… -
I my daily work I'm maintaining a #dotnet software containing ~5K unit tests including #WPF view model tests.
Most of the work they do is #async, started by 'AsyncRelayCommands'. This means waiting and asserting state changes is also async. Therefore #xunit tests are waiting often for `ManualResetEventSlim' to fire triggered by 'INotifyPropertyChanged' events.
I have wrapped this nicely in some lines of code which will result in test code being easier on the eyes in my opinion. Maybe this is useful someone else?
For details see:
-
I my daily work I'm maintaining a #dotnet software containing ~5K unit tests including #WPF view model tests.
Most of the work they do is #async, started by 'AsyncRelayCommands'. This means waiting and asserting state changes is also async. Therefore #xunit tests are waiting often for `ManualResetEventSlim' to fire triggered by 'INotifyPropertyChanged' events.
I have wrapped this nicely in some lines of code which will result in test code being easier on the eyes in my opinion. Maybe this is useful someone else?
For details see:
-
From the archives...
Testing in .NET with xUnit + NSubstitute + Shouldly
https://barretblake.dev/posts/development/2026/04/testing-dotnet/ #testing #dotnet #xunit #nsubstitute #shouldly -
From the archives...
Testing in .NET with xUnit + NSubstitute + Shouldly
https://barretblake.dev/posts/development/2026/04/testing-dotnet/ #testing #dotnet #xunit #nsubstitute #shouldly -
Azure Functions 開発の初歩(.NET 8 / Isolated Worker)
https://qiita.com/takahashih_imagitech/items/126a8f1e5eef624a41f1?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items#qiita #C #xUnit #AzureFunctions #IsolatedWorker #FunctionsCoreTools
-
New post from my blog...
In case you missed it earlier...
Testing in .NET with xUnit + NSubstitute + Shouldly
https://barretblake.dev/posts/development/2026/04/testing-dotnet/ #testing #dotnet #xunit #nsubstitute #shouldly -
New post from my blog...
In case you missed it earlier...
Testing in .NET with xUnit + NSubstitute + Shouldly
https://barretblake.dev/posts/development/2026/04/testing-dotnet/ #testing #dotnet #xunit #nsubstitute #shouldly -
New post from my blog...
Testing in .NET with xUnit + NSubstitute + Shouldly
https://barretblake.dev/posts/development/2026/04/testing-dotnet/ #testing #dotnet #xunit #nsubstitute #shouldly -
New post from my blog...
Testing in .NET with xUnit + NSubstitute + Shouldly
https://barretblake.dev/posts/development/2026/04/testing-dotnet/ #testing #dotnet #xunit #nsubstitute #shouldly -
@xunit @bradwilson Is there already a date, when #Xunit v2 will no longer be supported (will no longer receive bug fixes or security fixes)?
-
@xunit @bradwilson Is there already a date, when #Xunit v2 will no longer be supported (will no longer receive bug fixes or security fixes)?
-
via @dotnet : Supercharge Your Test Coverage with GitHub Copilot Testing for .NET
https://ift.tt/HnlU7Tg
#GitHubCopilot #NET #UnitTesting #VisualStudio #AIPoweredDevelopment #SoftwareTesting #CodeCoverage #DevCommunity #MSTest #xUnit #NUnit #TestAutomation #Soft… -
via @dotnet : Supercharge Your Test Coverage with GitHub Copilot Testing for .NET
https://ift.tt/HnlU7Tg
#GitHubCopilot #NET #UnitTesting #VisualStudio #AIPoweredDevelopment #SoftwareTesting #CodeCoverage #DevCommunity #MSTest #xUnit #NUnit #TestAutomation #Soft… -
@bradwilson I saw your issue about #JetBrainsRider not supporting @xunit v3 with Microsoft.Testing.Platfrom v2
With #dotnet 10 how would a minimal project using MTP v2 and #xunit v3 look like now.
Like this?
https://github.com/bitbonk/rider-mtp-v2-repro/pull/1
Or do I still need the xunit.v3.mtp-v2 package or even the bool msbuild properties
TestingPlatformDotnetTestSupport or UseMicrosoftTestingPlatformRunner -
@bradwilson I saw your issue about #JetBrainsRider not supporting @xunit v3 with Microsoft.Testing.Platfrom v2
With #dotnet 10 how would a minimal project using MTP v2 and #xunit v3 look like now.
Like this?
https://github.com/bitbonk/rider-mtp-v2-repro/pull/1
Or do I still need the xunit.v3.mtp-v2 package or even the bool msbuild properties
TestingPlatformDotnetTestSupport or UseMicrosoftTestingPlatformRunner -
https://dotnet.testcontainers.org/test_frameworks/xunit_net/ - #TestContainers for #dotNET allows spinning up #Docker #containers in the middle of #xUnit #tests.
-
https://dotnet.testcontainers.org/test_frameworks/xunit_net/ - #TestContainers for #dotNET allows spinning up #Docker #containers in the middle of #xUnit #tests.
-
via @dotnet : Enhance your CLI testing workflow with the new dotnet test
https://ift.tt/Yp23zum
#dotnet #dotnettest #CLITesting #MicrosoftTestingPlatform #MTP #VSTest #NUnit #xUnit #MSTest #TUnit #TestingWorkflow #SoftwareTesting #DevOps #ContinuousIntegration #… -
via @dotnet : Enhance your CLI testing workflow with the new dotnet test
https://ift.tt/Yp23zum
#dotnet #dotnettest #CLITesting #MicrosoftTestingPlatform #MTP #VSTest #NUnit #xUnit #MSTest #TUnit #TestingWorkflow #SoftwareTesting #DevOps #ContinuousIntegration #… -
I just spent 4 hours writing #XUnit tests to prove a point. Constructive pedantry!
-
I just spent 4 hours writing #XUnit tests to prove a point. Constructive pedantry!
-
xUnit Test Patterns: Contract Test — https://zalas.pl/contract-test/
Contract Tests are examples that describe the behaviour of an abstraction by expressing what cannot be encoded in the type system. These are typically helpful in testing adapters as defined in the Ports & Adapters architecture.
Examples in #kotlin, but the pattern is universal.
-
xUnit Test Patterns: Contract Test — https://zalas.pl/contract-test/
Contract Tests are examples that describe the behaviour of an abstraction by expressing what cannot be encoded in the type system. These are typically helpful in testing adapters as defined in the Ports & Adapters architecture.
Examples in #kotlin, but the pattern is universal.
-
https://dev.to/gsferreira/taking-control-over-xunit-test-names-3mel - in #dotNET, #xUnit test names can get weird. `[Fact(DisplayName = "This is the test name")] public void ...` Or take control by convention with xunit.runner.json. Nice walk-through https://www.linkedin.com/in/gferreira.
-
https://dev.to/gsferreira/taking-control-over-xunit-test-names-3mel - in #dotNET, #xUnit test names can get weird. `[Fact(DisplayName = "This is the test name")] public void ...` Or take control by convention with xunit.runner.json. Nice walk-through https://www.linkedin.com/in/gferreira.
-
Искусство Unit-тестирования: Сокращаем Arrange до Нуля
Unit-тесты очень важно и нужно писать, но вот незадача — на них никогда не хватает времени! Прочитав эту статью, вы узнаете абсолютно новый способ их написания, который сэкономит кучу времени и нервов. Эта статья будет полезна .NET разработчикам, которые когда-либо сталкивались с написанием unit тестов, а также тим и техлидам в поиске оптимальной практики для своей команды.
https://habr.com/ru/companies/ruvds/articles/894522/
#unit_tests #csharp #dotnet #autofixture #xunit #autodata #ruvds_статьи
-
🚀 Neat! #Duende is sponsoring #dotnet project Shouldy for the next year for $3,000. #unittesting #xunit #nunit #mstest
https://blog.duendesoftware.com/posts/20250415-shouldly-assertion-framework/
-
🚀 Neat! #Duende is sponsoring #dotnet project Shouldy for the next year for $3,000. #unittesting #xunit #nunit #mstest
https://blog.duendesoftware.com/posts/20250415-shouldly-assertion-framework/
-
via @dotnet : Microsoft.Testing.Platform: Now Supported by All Major .NET Test Frameworks
https://ift.tt/Y5EOJMG
#MicrosoftTestingPlatform #DotNet #TestFrameworks #MSTest #NUnit #xUnit #Expecto #TUnit #OpenSource #DevCommunity #ContinuousIntegration #TestingEcos… -
via @dotnet : Microsoft.Testing.Platform: Now Supported by All Major .NET Test Frameworks
https://ift.tt/Y5EOJMG
#MicrosoftTestingPlatform #DotNet #TestFrameworks #MSTest #NUnit #xUnit #Expecto #TUnit #OpenSource #DevCommunity #ContinuousIntegration #TestingEcos… -
Migrate from MSTest to xUnit using a Roslyn analyzer #dotnet #xunit #mstest https://www.meziantou.net/migrate-from-mstest-to-xunit-using-a-roslyn-analyzer.htm?utm_medium=social&utm_source=mastodon
-
Migrate from MSTest to xUnit using a Roslyn analyzer #dotnet #xunit #mstest https://www.meziantou.net/migrate-from-mstest-to-xunit-using-a-roslyn-analyzer.htm?utm_medium=social&utm_source=mastodon
-
GraphQL для C#. БД прилагается
Приветствую, Хабр! Относительно недавно я решил влиться в С# и его технологию для создания веб-приложений ASP.NET. До этого писал в основном на С++ и Python с Django. Ну а так как я по жизни практик, то и чтоб чему-то научиться, надо что-то сделать, пусть и корявенькое (хотя пару книжек, конечно, прочитал). Выбор пал на стандартное приложение магазина книг, а точнее его бэк составляющую, ибо с дизайном и любыми, даже базовыми, проявлениями фронтовой части я не дружу от слова совсем) Вначале сделал приложение с базовыми контролерами REST API по учебнику и т.д. Но после захотелось попробовать уже другой вариант, и я решил использовать GraphQL...
-
https://www.meziantou.net/how-to-view-logs-from-ilogger-in-xunitdotnet.htm - connect #xUnit's ITestOutputHelper to #ASPnet's ILogger<T>. Now I get ASP.NET console logs in my test output including EF queries. Nice tool https://www.linkedin.com/in/meziantou/.
-
https://www.meziantou.net/how-to-view-logs-from-ilogger-in-xunitdotnet.htm - connect #xUnit's ITestOutputHelper to #ASPnet's ILogger<T>. Now I get ASP.NET console logs in my test output including EF queries. Nice tool https://www.linkedin.com/in/meziantou/.
-
My talk went great! :-)
I had a full "room"!
And here is my promised repo on dealing with integration tests in #dotnet
You can see #testcontainers utilized, #docker, #xunit custom parallel framework, #NSubstitute, #TestServer and all in #csharp testing e2e #HTTP #APIs with #auth, #MySQL, #Redis, #RabbitMQ and #MongoDB.
-
My talk went great! :-)
I had a full "room"!
And here is my promised repo on dealing with integration tests in #dotnet
You can see #testcontainers utilized, #docker, #xunit custom parallel framework, #NSubstitute, #TestServer and all in #csharp testing e2e #HTTP #APIs with #auth, #MySQL, #Redis, #RabbitMQ and #MongoDB.
-
I am slowly getting the hang of this #propertybasedtesting thing ;-)
#FSharp #dotnet #FsCheck #xunit -
I am slowly getting the hang of this #propertybasedtesting thing ;-)
#FSharp #dotnet #FsCheck #xunit -
Just discovered I have always used #xUnit's theories incorrectly: they are more about properties than reducing duplication.
They are way more fascinating than I thought
-
Just discovered I have always used #xUnit's theories incorrectly: they are more about properties than reducing duplication.
They are way more fascinating than I thought
-
If you are using #Rider and your team uses #xunit traits that you don’t care about and just pollutes the Test Explorer, then help me upvote this feature to hide Test Categories: https://youtrack.jetbrains.com/issue/RIDER-118520
-
A post more for me than anyone else. How to test C# clients which use HttpClient WITHOUT using Moq.
Unit Testing Umami.Net - Testing Umami Data Without Using Moq
https://www.mostlylucid.net/blog/unittestingumamidatanet
#xunit #aspnetcore -
A post more for me than anyone else. How to test C# clients which use HttpClient WITHOUT using Moq.
Unit Testing Umami.Net - Testing Umami Data Without Using Moq
https://www.mostlylucid.net/blog/unittestingumamidatanet
#xunit #aspnetcore -
New small article on a problem I was having Unit Testing Logging with ASP.NET Core. And the new (to me) package I found to solve it.
https://www.mostlylucid.net/blog/unittestinglogginginaspnetcore
#xunit #aspnetcore