You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
end to end is heavier to run, we should use unit/integration where possible.
i don't agree w/ the absolute nature of this position. unit tests tend to be harder to write (and sometimes harder to maintain) than end to end tests since they are so closely tied to the implementation. and for the most part you're not sitting waiting for the tests to run, they're running in a PR while you're doing something else.
They each have their place, no doubt, but i don't think you can make a blanket statement that unit tests should be preferred in all cases.
I agree that each component has to be tested on every possible level, just to make sure it is working as expected (the more tests the better). Each of these tests look at different aspects of how things are working, that's what I wanted to say. But again, for things that can be added as unit tests I would prefer to see them tested. end-to-end are verbose but we will never create such a good coverage with end-to-end like you might have with table testing in unit. Or if you do it'll be a killer for our test and merge queue.
Activity
0xmichalis commentedon Jun 10, 2015
Agreed. Actually we will need to increase test coverage for the whole OpenShift:)
Wait until at least @fabianofranz's changes in new-app land for this.
bparees commentedon Apr 25, 2017
to be fair we have a good bit of coverage for this in end to end tests.
soltysh commentedon Apr 25, 2017
end to end is heavier to run, we should use unit/integration where possible.
bparees commentedon Apr 25, 2017
i don't agree w/ the absolute nature of this position. unit tests tend to be harder to write (and sometimes harder to maintain) than end to end tests since they are so closely tied to the implementation. and for the most part you're not sitting waiting for the tests to run, they're running in a PR while you're doing something else.
They each have their place, no doubt, but i don't think you can make a blanket statement that unit tests should be preferred in all cases.
soltysh commentedon Apr 25, 2017
I agree that each component has to be tested on every possible level, just to make sure it is working as expected (the more tests the better). Each of these tests look at different aspects of how things are working, that's what I wanted to say. But again, for things that can be added as unit tests I would prefer to see them tested. end-to-end are verbose but we will never create such a good coverage with end-to-end like you might have with table testing in unit. Or if you do it'll be a killer for our test and merge queue.