Skip to content

Latest commit

 

History

History
226 lines (186 loc) · 10.4 KB

File metadata and controls

226 lines (186 loc) · 10.4 KB

Automated Testing in C# and .NET scenarios knowledge base

Libraries and Tools:

Additional:

E2E:

API Tests:

DB Tests:

Infrastructure:

Visual Studio Testing features:

Visual Studio Add-ons

Google Chrome Add-ons

eBooks:

Best practices:

Stack Overflow:

Knowledge base, TDD, BDD, ATDD

Martin Fowler

Docs:

XUnit vs NUnit vs MSUnitt

Unit Tests

https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/testing?view=aspnetcore-6.0

Naming Conventions:

[UnitOfWork_StateUnderTest_ExpectedBehavior]
[MethodName_StateUnderTest_ExpectedBehavior]

Sum_NegativeNumberAs1stParam_ExceptionThrown() 
Sum_NegativeNumberAs2ndParam_ExceptionThrown() 
Sum_simpleValues_Calculated()
ParseLogLine_StartsAndEndsWithSpace_ReturnsTrimmedResult()
GetDiscountedPrice_NotTuesday_ReturnsFullPrice()

Code Coverage

Live Unit Tests

Integration tests:

Respawn, Database tests

https://github.com/jbogard/Respawn/blob/master/Respawn.DatabaseTests/SqlServerTests.cs

E2E Tests

Load & Stress Testing

Perfromance Tests recommendations

Tools:

Exploratory Testing

Behavior Driven Devleopment

Samples of Unit Tests

Security Testing

Test Automation and CI/CD