Quote:
Originally Posted by Victor
a few times I have edited a file and added a little bit of functionality and then added unit tests in the same form as the rest. but upon code review I have been told that the unit tests were all wrong and been told to rewrite them. but I did not write the tests in the first place and only added a similar test to be consistent.
We code review diffs, with the option to expand code for context. It's much more efficient, especially in larger files, and solves this problem nicely. If code that is outside your diff gets a comment then the team should create a new ticket to solve that and place it on the backlog, not let you inherit the mess and bloat the size of your original task.
edit:
after re-reading your post I guess the problem here was that you copied the methodology of the old tests, not that they thought you had written all of them. In that case you can kinda blame yourself, you should have written a correct test and ignored the others
Either way, if you fix your test I would argue that your task is done and the PR should be accepted. Then create a new task to fix the legacy tests. Which will probably land on you, but hey, at least you get another notch in your belt for fixed tickets.
And btw, not assigning story points to fixing bugs is ******ed. With one caveat. If you you are solving a ticket and it fails in QA and gets a new bug, then i can see the argument for not assigning points to that (the effort is included in the initial task). But any bugs that are discovered after a task is done done should 100% be assigned points.
Last edited by Wolfram; 09-17-2017 at 07:59 PM.