For clients who were resistant to my repeated testing, I try to explain things in these terms: Writing tests in front costs me minutes in advance, but saves me hours near the concert. And from time to time it costs me hours in advance, but saves me days near the concert.
Some of the links provided in other answers are also excellent. If the boss is still resisting after this proof and argument have been shown ... I would have polished my resume. Your ability and desire to write code correctly should put you in a good position to pick up less terrible work.
source share