Beekey Cheung is a software engineer with a large amount of enthusiasm for economics and a passion for education. He loves mentoring other programmers and is currently building an application to te...
I'm of the opinion that all functional tests can be automated. Some are obviously going to be harder, especially ones dependent on third party APIs. Mocking these out can be somewhat challenging depending on the workflow. Oauth logins come to mind. APIs with very large payloads are another case.
But I think with some time and thought, any test can be automated and it is worth putting the time to do it. I went months without tests around code that interacted with the Gmail API. The return payloads were simply too large to put nicely into a unit test. But it was also extremely tedious testing against it manually. So I just started dumping those payloads into files and built integration tests to load those files. In the past 3 months, I've probably saved myself over a hundred hours of testing and it cost me 10-15 hours of automation work.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm of the opinion that all functional tests can be automated. Some are obviously going to be harder, especially ones dependent on third party APIs. Mocking these out can be somewhat challenging depending on the workflow. Oauth logins come to mind. APIs with very large payloads are another case.
But I think with some time and thought, any test can be automated and it is worth putting the time to do it. I went months without tests around code that interacted with the Gmail API. The return payloads were simply too large to put nicely into a unit test. But it was also extremely tedious testing against it manually. So I just started dumping those payloads into files and built integration tests to load those files. In the past 3 months, I've probably saved myself over a hundred hours of testing and it cost me 10-15 hours of automation work.