I'd say it depends on the data.
If the schema is consistent between rows, and it turns out a test result is made up of several rows because the test is composed of several stages, I would leave it as is until reporting time.
If you pivot prematurely, you could end up dropping data because there are new stages didn't exist when you implemented the pivot.