¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: testing on the web


 

Hi Alan,

On Mon, Mar 28, 2022 at 7:54 PM Alan Baljeu via <alanbaljeu=[email protected]> wrote:
I'm confused by language in that post.? I think "commit" means locally post to Source control your newly changed code.??

[...]
  • > A) Maybe squash all these commits, [...]

In other words, delete the commit and TDD a new test which we make pass.
  • > B) Throw away all those commits, then test-drive the missing behavior using the notes [...]
In other words, delete the commit and TDD a new test which we make pass.

Do you see my confusion?


I see how this can be confusing.

The difference is in case A you don't simply "delete" commits, "squashing" means you replace several commits with a single commit that applies the same patch as all the previous commits together.
In this case, you accept that you're done and change history for the sake of having a clean history without the step-by-step commits.

Conversely, in case B you indeed throw away commits, and rely solely on the fresh knowledge to do it all again. You may or may not end up with the same patch as in case A.


Cheers,

Rodolfo Carvalho

Join [email protected] to automatically receive all group messages.