Initial testify work#10610
Conversation
Signed-off-by: Cristian Staretu <[email protected]>
Signed-off-by: Cristian Staretu <[email protected]>
|
ping @tianon @LK4D4 @tiborvass @icecrime |
|
Thanks @unclejack ! Pinging testify lovers @aluzzardi @vieux: what do you think is the right tradeoff between asserts and ifs (e.g. unclejack@9f10d27#diff-ca97ecb464e792b1086fca2ee8af23f8R39) |
There was a problem hiding this comment.
I love this, can we also remove all images, except scratch, busybox and third which I can't remember. And all dangling too.
|
I am +1 to use all packages of testify if that will be more convenient then current situation. Also probably multiple |
|
So I started looking a bit at testify to see what it does, and I feel it is very wrong and wouldn't use it for Docker as it is. I submitted stretchr/testify#128 to fix this kind of unexpected behavior:
So it's mostly NOT LGTM for me unless we get these fixed. |
|
@aluzzardi ^^ |
|
@icecrime That's OK, we can avoid using assert right now and do that later. Being able to use the suites to have setup and teardown for the tests is extremely useful. |
|
This is labelled as "design review" but I don't seen any changes to UI or public API. What am I missing? |
|
Well I wasn't sure if deciding if we want to use testify counts as "design review" or "code review" |
|
Sorry @unclejack, I'm closing this until we can agree on whether or not to use testify. I'm personally +1 for this, and would love to use both the test suites as well as the assert functions. If there are some weirdnesses that still need to be fixed on it, let's get those PRs merged upstream. Please continue discussion below. |
This PR vendors
stretchr/testifyand makes api_containers integration cli tests use it.There's a large number of tests. They need to be converted to testify in batches.
Right now, this is WIP. This PR should at least convert all api integration cli tests after agreeing on the parts of
stretchr/testifywe want to use (assert vs if conditions, other refactoring work).