Hi for a bit of background I a developer in the UK and we work in an agile environment.
A senior developer (let's call him X) and myself are working on a project, now I like the guy, he's a nice guy and I don't want to throw him under the bus but I have done roughly 70%-80% of the code.
So we have a breakdown of tasks to get on with, we both have other projects we need to work on but the head of development (Our boss) has told us both this is our main priority.
Most the tasks that X has undertaken have had to be re-written by myself or because of tight deadlines I've had to do his work. Now because of this some small bugs or tasks have fallen through the cracks either because I didn't know about them or X told me they were done when they weren't.
Now the issue here is that when anything goes wrong I'm being blamed by the head of development for all bugs or tasks not being finished even though they weren't mine to do in the first place.
I don't wan't to throw X under the bus but what can I do about this?
I've tried talking to X about the bugs or work not being done and he just brushes it off or says it's working on his machine, when I ask to see it working he makes excuses to not show me.
Note I've read the below question but this is different because he's my senior so I'm not sure the advice would differ. How do I deal with getting blamed for my coworker's sloppy code?