Changing how I review code
itnext.io
Changing how I review code
1–10 of 80 posts
Re: Changing how I review code
#2Re: Changing how I review code
#3https://archive.is/jeDmL
Re: Changing how I review code
#4You should run it somehow, but if you've got CI running tests, which I think you should have anyways, then does it matter?
Re: Changing how I review code
#5> Another common critique is that the pull requests encourage reviewers to only look at the code. They never even pull down the changes they are reviewing! You should run it somehow, but if you've got CI running tests, which I think you should have anyways, then does it matter?
In that practice, it's better to run it locally! For each UI file / function, try to get it to execute from a user's POV.
Re: Changing how I review code
#6Our CI automatically deploys a "review app" when someone creates a pull request. This simplifies code review, QA and demoing!
Re: Changing how I review code
#7> Another common critique is that the pull requests encourage reviewers to only look at the code. They never even pull down the changes they are reviewing! Our CI automatically deploys a "review app" when someone creates a pull request. This simplifies code review, QA and demoing!
For instance, in a warehouse automation infrastructure that has 30 devs, working on 8 feature simulataneously, it is next to impossible to create review app with the resources they need.
Re: Changing how I review code
#8> Another common critique is that the pull requests encourage reviewers to only look at the code. They never even pull down the changes they are reviewing! You should run it somehow, but if you've got CI running tests, which I think you should have anyways, then does it matter?
Re: Changing how I review code
#9disclaimer: the majority(not all) PR's were in a very very large terraform codebase.
Re: Changing how I review code
#10> Another common critique is that the pull requests encourage reviewers to only look at the code. They never even pull down the changes they are reviewing! You should run it somehow, but if you've got CI running tests, which I think you should have anyways, then does it matter?
That is what testers are for. Testing is great thing.
Just kidding and in reality UI tests exists and aren't super difficult to set up. The front end has plenty of tools like Cypress and its pretty simple to automate running a bunch of tests that screenshot and diff compare your site.
I never really pulled down UI code to test them out. There has to be a certain level of trust between engineers. Sometimes I'd ask or post screenshots of changes but that was rare.