I’ve been working for 2 months and a half in a project and it is practically finished. However I keep seeing some errors I fixed in the past that come back to annoy me. I then fix them again and another one bugs me.
I know, I know, I did a mistake not using phpunit and selenium at first, but is it viable or realistic to start using it at this moment (even if the project ends in 1 week and I still have some parts to finish)?
Thanks in advance
Testing always adds time to your development time, unless you have a team for it. In my experience, a project is never really done. Even once you have handed it off. The user always finds interesting ways to use your product.
I would suggest that it is always a good thing to have unit testing on a project. It gives a nice start to any new developers that need to get up and running with the project in a few months time, including yourself.
I would highly recommend that you add the testing if you can. It will make life much easier in the long-run, however, if you are planning on delivering the project and not touching it again or that you will not be working on it in the near future, you can leave it out. Depends on the benefit you are looking for. Unit testing is almost always nice for long term projects and support contracts.