mardi 23 juin 2020

How to compare data outputs of two different git commits

I have a Github project that outputs a csv file. I want to make sure the csv output is the same after refactoring the code.

Currently, I do a manual check - but the overhead is getting to be too much.

Is there a standard way for comparing outputs across different git branches/commits?

Suppose we have a Master and Dev branch. My current idea is to have a script that:

  • checkouts master
  • runs program, saves output file
  • checkouts dev
  • runs program, saves output file
  • compares to two output files

Is this an appropriate method for doing so? Is there anything I should be wary of?

Aucun commentaire:

Enregistrer un commentaire