Reputation
2,128
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
7 19
Newest
 Enlightened
Impact
~33k people reached

Feb
25
comment How to unit test correct implementation of an interface is used?
That's duplication, though. You essentially copy same tests you did in unit tests (not always, of course, but for some scenarios, when the number of combinations in sub-part is big, integration test must test them all, albeit in complicated setup).
Feb
25
comment How to unit test correct implementation of an interface is used?
@ThomasRuiz Thanks, I will look.
Feb
25
comment How to unit test correct implementation of an interface is used?
@Doval Yes, but I should test that some object was actually created, and that that object is correct. The question is, how to test the glue code that creates and setups it, when you already have full coverage on the class itself, but how to test the code that may look like var client = new FooClient(); client.connect(this.config.foo);. This code, that actually creates the pieces and glues them, should be tested, too; the question is, how.
Feb
25
revised How to unit test correct implementation of an interface is used?
added 85 characters in body
Feb
25
comment How to unit test correct implementation of an interface is used?
I don't have the problem of "not importing the mocks". I have the problem of "test that the thing instantiated is the right one". Especially in the duck-typing world. So when there is some this.foo = new Bar(this.baz, this.quux) somewhere in the glue code, how to sanely test the this.foo is actually the good object implementing all the behaviour that is wanted, initialized properly, etc.
Feb
25
comment How to unit test correct implementation of an interface is used?
@Doval I don't understand.
Feb
25
awarded  Student
Feb
25
asked How to unit test correct implementation of an interface is used?
Feb
3
answered What to use instead of IDs in selectors in CSS
Jan
7
revised Lower and Upper bound of an algorithm
typo in title
Jan
7
suggested approved edit on Lower and Upper bound of an algorithm
Dec
20
revised Why is Win32 API's WM_MOVE being called while dragging the window?
Question is not about C++, the WM_MSGNAME constants are used in other SDKs for Windows development as well
Dec
19
suggested approved edit on Why is Win32 API's WM_MOVE being called while dragging the window?
Dec
19
suggested rejected edit on Why is Win32 API's WM_MOVE being called while dragging the window?
Dec
19
revised Why is Win32 API's WM_MOVE being called while dragging the window?
added 57 characters in body
Dec
19
answered Why is Win32 API's WM_MOVE being called while dragging the window?
Nov
20
awarded  Yearling
Mar
19
answered Optimistic & Pessimistic Programming - Ensuring multiple tasks are called only once for specific record
Jan
31
answered How do I explain a ruby method with a real-world analogy?
Jan
27
answered How do you get developers to want to write good code they can be proud of?