Hi Milan, I want to thank you, by following your videos and learning the concepts you mention from multiple resources, I found a job that I couldn't even imagine. Your pragmatic clean architecture course was the best investment I've ever made in myself 🌻
Great video that covers a lot of topics. I suggest breaking this video into smaller digestible pieces. Insert more background information for people who are not very familiar with the topic. Thank you for the good job.
I'm not sure if i like the fact that an Integration test is using a docker container for the DB. I'm fine with Functional test using it, but the idea of an Integration test is to test the integration between layers and data in an isolated way. In this case if the connection with the DB in docker fails for some reason, your test is going to fail and not because the scenario you are testing, which defeats the purpose of integration tests. For integration test i would use InMemoryDB instead. But those are my two cents. Cheers!!
Hi Milan, Thanks for sharing this content. I feel your videos have been helping me understand the .NET ecosystem more and more as time goes by making me a better developer. I wanted to ask how we can implement test containers to write integration tests for a Proxy API, meaning that the API doesn't interact with a Database but rather relies on receiving data from multiple downstream service (like other API's). Thanks in advance!
@@MilanJovanovicTech if these services are deployed via ecs containers and are accessible via publicly accessible URLs can we point the test containers to that URL?
How do you see to run a single-behaviour test case in isolation? I think you said that you are sharing the same containers (so the same DB) acroos multiple test cases. But are they all related to the same test case so that it is just fine to run it in sequence? To me what you showed is more close to Unit test though.
Hey Milan, i really appreciate your videos. I learn a lot from them and i am always looking forward to your new videos. I have a question regarding your clean architecture course. I have seen that they are offered for half price off at the moment on your website, however when i try to order them the price is back to full. Can you help me with that? I would like to purchase your course.
You mention functional tests. I assume that's the api tests that call the endpoints in your github actions. Could you do a video on this but include barriers such as if your endpoints require authentication. Great video and thanks
Hey Milan, Question for you, if all your integration tests share the same in-memory database, won't they inadvertently affect each other? I think I understand unit testing pretty well, so I'm thinking of the concept where tests are independent of each other. Wouldn't a shared in-memory database break this? For instance, if I run integration tests that ADD a user, followed by another integration test that UPDATES a user, followed by another integration test that DELETES a user, then everything works great. But, what if the unit tests now run in the order of DELETE, ADD, UPDATE, or ADD, DELETE, UPDATE?
Tests shouldn't depend on each other in any way. Each test should seed any data it needs to execute correctly. That way, it won't matter what order they're executed in.
Want to master Clean Architecture? Go here: bit.ly/3PupkOJ
Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt
Milan please make a video for RIDER or Visual Studio diff for developers
Hi Milan,
I want to thank you, by following your videos and learning the concepts you mention from multiple resources, I found a job that I couldn't even imagine.
Your pragmatic clean architecture course was the best investment I've ever made in myself 🌻
Way to go! Love to hear this. You're doing an awesome job. 🏆
Explaining every steps is very helpful, Learnt new things like what is the meaning of --- no restore .
You're welcome :)
Great video that covers a lot of topics. I suggest breaking this video into smaller digestible pieces. Insert more background information for people who are not very familiar with the topic. Thank you for the good job.
I've done longer videos on each of the individual topics, so it shouldn't be too hard to piece everything together
I like how his kick to star the car
Star the car?
I'm not sure if i like the fact that an Integration test is using a docker container for the DB. I'm fine with Functional test using it, but the idea of an Integration test is to test the integration between layers and data in an isolated way. In this case if the connection with the DB in docker fails for some reason, your test is going to fail and not because the scenario you are testing, which defeats the purpose of integration tests.
For integration test i would use InMemoryDB instead.
But those are my two cents. Cheers!!
That's not an integration test then, IMO
Hi Milan,
Thanks for sharing this content. I feel your videos have been helping me understand the .NET ecosystem more and more as time goes by making me a better developer. I wanted to ask how we can implement test containers to write integration tests for a Proxy API, meaning that the API doesn't interact with a Database but rather relies on receiving data from multiple downstream service (like other API's). Thanks in advance!
You'd need to figure out a way to run all the services together
@@MilanJovanovicTech if these services are deployed via ecs containers and are accessible via publicly accessible URLs can we point the test containers to that URL?
How do you see to run a single-behaviour test case in isolation? I think you said that you are sharing the same containers (so the same DB) acroos multiple test cases. But are they all related to the same test case so that it is just fine to run it in sequence? To me what you showed is more close to Unit test though.
You should be able to run them in any order. If each test takes care of setup/tear down
Hey Milan, i really appreciate your videos. I learn a lot from them and i am always looking forward to your new videos. I have a question regarding your clean architecture course. I have seen that they are offered for half price off at the moment on your website, however when i try to order them the price is back to full. Can you help me with that? I would like to purchase your course.
You should still be able to see the discount code at the top of the page. Just apply it on checkout.
thank you :)
You mention functional tests. I assume that's the api tests that call the endpoints in your github actions.
Could you do a video on this but include barriers such as if your endpoints require authentication.
Great video and thanks
Good call on including Auth in tests, will cover that
Hey Milan,
Question for you, if all your integration tests share the same in-memory database, won't they inadvertently affect each other? I think I understand unit testing pretty well, so I'm thinking of the concept where tests are independent of each other. Wouldn't a shared in-memory database break this?
For instance, if I run integration tests that ADD a user, followed by another integration test that UPDATES a user, followed by another integration test that DELETES a user, then everything works great. But, what if the unit tests now run in the order of DELETE, ADD, UPDATE, or ADD, DELETE, UPDATE?
Tests shouldn't depend on each other in any way. Each test should seed any data it needs to execute correctly. That way, it won't matter what order they're executed in.
❤
Thanks!
what is the best way to test data insertion into a azure table storage ?
Can't really test cloud services - other than using the actual service
Really great topic to simplify testing. I prefer these general .NET coding videos that you produce, rather than the Clean Architecture rehash videos.
Cool, thanks! I'm trying to balance between the different topics I like to talk about.
well done. So would you run Integration testing on every CI run (checkin of the code)? Wouldn't that be too slow for an on-line CI?
Yes. These tests are still pretty fast to run. Especially if you reuse the containers between multiple runs.
I love Your work ❤. I thinking about test i docker, and you make it😅
Happy to help 😁
this was awesome
Thanks!