resources : https://dev.to/therubberduckiee/explaining-kubernetes-to-my-uber-driver-4f60#:~:text=The official definition of Kubernetes,a "chef orchestration tool".
unit testing
In unit testing, we test individual components (or units) of a program by writing small tests. These tests focus on checking the results produced by the components against the expected or desired outcomes.
acceptance tests
Acceptance tests, also known as black box testing and functional testing, focus on testing the entire system as a whole rather than individual components. In acceptance tests, we simulate user behaviour by only using the exported components. acceptance tests are more expensive to write than unit tests
Benefits of acceptance tests
- When they pass, you know your entire system behaves how you want it to.
- They are more accurate, quicker, and require less effort than manual testing.
- When written well, they act as accurate, verified documentation of your system. It doesn't fall into the trap of documentation that diverges from the real behaviour of the system.
- No mocking! It's all real.
Potential drawbacks vs unit tests
- They are expensive to write.
- They take longer to run.
- They are dependent on the design of the system.