Double standard in Developer Views

I have had many discussion with several people who said that they are proud to announce that their team use test automation so that they can focus on developing instead of testing ( which is done by human) and hopefully will be able to reduce any tester possible. 

When they said about this, I am usually a little bit skeptical about their understanding of what testing is. So then I continued the discussion. I mentioned to them that we are also busy implementing CI/CD and placed static code analysis tool during CI so then we do not need review column in our JIRA board which is done by human. 

At the end of my sentence, most of the time they said “You will never be able to remove the code review process. Because the tools will never be as good as human.” 

Are you saying, we can replace human tester and not human reviewer? Is it because you think that testing is much easier than reviewing code? Or is it because the code review is done by developer and testing is done by a mere tester? And do you think that testing might can be done by anyone? Therefore it is replaceable by a machine who actually does nothing unless we programmed it to do so? Isn’t it a double standard?

And the discussion continued, but at least I hope my point is taken. 

Happy Testing!

Git – Rewrite History

There was time that you accidentally commit code to repository that you are not supposed to commit such as your password, or any secret code. I was looking for a way to revert the committed code that I have pushed in my repository. 

In git you can do it by rewriting the history. Below is how you can rewrite your history.

git rebase -i HEAD~3

HEAD~n : the n is the index of commit you want to rewrite from the HEAD. With the command above, it will give you the list of commits from the HEAD until the index 3. With this list you can choose between squash, drop, pick, etc.

After you rewrite the history then you can continue with 

git commit --amend
git rebase --continue

you can repeat these steps for each commit you change.