As far as we talk about automated tests there are 3 levels of testing: 1. Unit tests 2. Integration tests 3. System tests Google propose another test classification, but it can be mapped directly to the above 3 points. So google uses 3 following test levels: 1. Small test 2. Medium tests 3. Large tests Google also defines how to keep the balance between test types. Here it is: 1. Small test - 70% 2. Medium tests - 20% 3. Large tests - 10% Today I'll show you how in my Perfect Life application I'm doing integration tests. In small project i think medium/integration test should play important role and I'd dedicate 50% of my tests to integration. Let's jump into the code. This is a client class placed in Xamarin application, that is responsible for calling .NET Core web service: This is a test for this class. Note it calls real web service: So for small project to keep test balance I would follow the following proportion: 1. Small test - 45% 2. Med...
Dotnet, Xamarin, ASP.NET Core, BDD, ChatGPT for C# devs