For #225: Implement the rest of Network methods#231
Conversation
- Added test methods for Network.connect and Network.disconnect
Pull Request Test Coverage Report for Build 402
💛 - Coveralls |
1 similar comment
Pull Request Test Coverage Report for Build 402
💛 - Coveralls |
|
Job #231 is now in scope, role is |
|
This pull request #231 is assigned to @bkuzmic/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @amihaiemil/z (the architect) right in this ticket; if you decide that this PR should not be accepted ever, also inform the architect; this blog post will help you understand what is expected from a code reviewer; there will be no monetary reward for this job |
|
@amihaiemil I think that puzzle number 231 is interfering with pull request 231. How to properly number the puzzle to avoid collision? |
|
@paulodamaso @amihaiemil Adding tests and just ignoring them just feels wrong to me. I would rather create a partial implementation (or fake) that would make the test pass. This is not TDD and it doesn't give the developer immediate feedback of the correctness of the test or implementation. |
|
@bkuzmic I think that creating a partial or fake implementation that makes the test pass is worst, because it will give the impression that everythin is ok, even with "incorrect" code. I agree that leaving an |
|
@paulodamaso Well, if you follow the TDD principles strictly (just to be clear, I'm not a fan of strict TDD), then it is ok to write a smallest peace of code to make a test pass and then refactor the test and then change the implementation again. Basically, this is what I've done when I created tests for all the "UnsupportedOperationException" methods. |
|
@paulodamaso Btw. do you know the answer to the question:
|
bkuzmic
left a comment
There was a problem hiding this comment.
@paulodamaso Thanks for the PR. Let's merge it.
|
@rultor merge it. |
@bkuzmic Thanks for your request. @amihaiemil Please confirm this. |
|
@bkuzmic Just for the record:
Writing the test first helps us to define the requirements of our code, and we just skip the step of creating fake or mock tests for our code. Note that when we create a code that does not work and then a test just to fullfill the coverage requirements (that tests a wroing behavior) we end up with two problems, a code that does not what it was supposed to and a test that does not test the correct behavior of the code.
Me neither! But puzzles are not comments; in 0pdd implementation we use some special tag to define them, but talking about strict XDSD we could open these issues concurrently to our tickets in our issue base; 0pdd and its syntax is just a tool to ease the job decomposition Last, but not least, I did not understood your doubt about puzzle 231. I've never had to manually number an issue, at least that I remember |
I also don't understand your question :) |
|
@amihaiemil Ok, I got it all wrong. I thought that I needed to increment a puzzle number to next higher number. My mistake, sorry :-(. |
|
@rultor merge it |
@amihaiemil OK, I'll try to merge now. You can check the progress of the merge here |
@amihaiemil Done! FYI, the full log is here (took me 2min) |
|
Job was finished in 36 hours, bonus for fast delivery is possible (see §36) |
|
The job #231 is now out of scope |
|
Payment to |
For #225: Added test methods for Network.connect and Network.disconnect