how many ls can you find in:
q: how to write integration tests for a component oriented software platform initial situation:
we are developing a software platform where products can be generated by configuring different components and adding additional ones. the platform is developed several years by a little developer team. now the platform is more and more used, we get new developers as well as testers. we are currently developing a concept for developer. cause is, that we do not have much developer tests for our components.
the tester team uses automated ui testing tools to test the products emitted by the platform.
our goal:
we want to motivate our team members to write more tests to achive 


*

*shorten feedback cycles

*reduce bug count for new features

*reduce regressions


the question:
we want to begin figuring out brittle components. after we have found them, we want to write integration tests for the component which describes expected features. now we have the following problem: we can test the component for itself and mock all dependencies to other components. we can test the component with all directly depend components. we can test the component with the completely dependency structure of it - so its dependencies and their dependencies... we can test the component in the context of different product configurations.
which one would be the best to achieve our goals and at the same time minimize the effort needed by our team members to configure the tests?

a: you will probably need some of both.
integration tests are against real dependencies. they are usually easier to write, but require more time and resources to run. some bugs will only be found by integration tests, because you will be affected by real bugs of the dependencies and youll never think of the same bugs when mocking. they also test all the components involved, so few tests for the downstream components will give you a lot of coverage.
unit tests are against mock. writing the mocks takes time, but the tests than run faster and it is the only way to test robustness against various failures, because you cant make the real dependency fail in whatever way you think of. they are also much easier to debug on.
i suggest you start with integration tests. create some scripts to set up all necessary test data so it is easy to run. start with big, realistic setups. that should help you identify the brittle components. you can than create smaller setups to narrow down sources of the problems. than create mocks and unit tests mainly as tool to make debugging the faults you found in integration tests easier. and keep them around as regression tests.

user
The total number of "l"s in that passage is seventy-five.
assistant