Jherson huacho retweetledi

Developers who say they don't have time for tests
Are lying. Seriosly 👇
Many .NET developers write code for months without a single test.
Most say - I don't have time or a budget for tests
But in the age of AI...
It's never been easier and faster to write any kind of tests.
You need to have a good template for your tests.
And the AI will follow.
⚠️So, no more excuses for not writing tests.
I created a 2026 Testing Cheatsheet that covers everything you need.
Save this post. You will thank me later.
📌 Testing Frameworks
• xUnit
• TUnit
• NUnit
📌 Assertions
• xUnit Assertions
• Shouldly
• FluentAssertions (is now paid)
📌 Integration Testing
• Testing with .NET Aspire
• WebApplicationFactory + TestContainers
• Respawn
📌 Frontend Testing
• Playwright
• Selenium
📌 Mocking
• NSubstitute
• Moq
📌 Fake Data
• Bogus
• AutoFixture
📌 Snapshot Testing
• Verify
📌 Behaviour Testing
• ReqNRoll
• SpecFlow (not maintained anymore)
📌 Performance Testing
• BenchmarkDotNet
• k6
• NBomber (paid for commercial usage)
• JMeter
Here is what I recommend in 2026:
✅ xUnit remains the most popular testing framework
✅ TUnit is a modern alternative worth exploring
✅ Shouldly is my go-to for readable assertions
✅ NSubstitute has the cleanest mocking API
✅ Bogus makes generating fake data easy
✅ Aspire provides the easiest way to write integration tests
✅ TestContainers spins up real databases in your tests
✅ Respawn resets your database between integration tests
✅ Playwright is the best choice for frontend testing today
✅ BenchmarkDotNet is the standard for micro-benchmarking in .NET
✅ k6 is excellent for load testing APIs
✅ NBomber allows you to reuse existing C# code for load tests
❌ Avoid **SpecFlow** → it is no longer maintained
❌ Be aware **FluentAssertions** is now a paid library
👉 You don't need every tool on this list.
Here is your plan for adopting tests:
1. Unit Tests
2. Integration tests.
3. Load (performance) tests
4. Frontend (E2E) tests
📌 I have created a free guide for you on integration testing in Aspire: antondevtips.com/blog/dotnet-as…
Which testing tools are you using in 2026?
Share in the comments 👇
——
♻️ Repost to help other .NET developers write better tests
➕ Follow me ( @AntonMartyniuk ) to improve your .NET and Architecture Skills

English

























