Pregenerated emissions and infrastructure files can be counterproductive when trying to test for changes. Especially when emissions or infrastructure generation was changed. This change is to allow for the testing of emissions/infrastructure generation while maintaining the random number generator seeds.
What was changed
Pregenerated infrastructure and emissions are deleted with the end-to-end testing scripts.
Intended Purpose
Add to the script to remove the generated infrastructure and emissions files. This forces the generation of new infrastructure and emissions based on the random preseeds, which should result in the same emissions.
Level of version change required
N/A
Testing Completed
Manual testing was done to ensure that the correct files are deleted with the E2E test scripts.
Pull Request Key Information
Reason for change
Pregenerated emissions and infrastructure files can be counterproductive when trying to test for changes. Especially when emissions or infrastructure generation was changed. This change is to allow for the testing of emissions/infrastructure generation while maintaining the random number generator seeds.
What was changed
Intended Purpose
Add to the script to remove the generated infrastructure and emissions files. This forces the generation of new infrastructure and emissions based on the random preseeds, which should result in the same emissions.
Level of version change required
N/A
Testing Completed
Manual testing was done to ensure that the correct files are deleted with the E2E test scripts.
Main code base was not affected.
All Unit tests pass: results.txt E2E tests pass: V4_simple_non_repairable_emissions_f67490e60a0a79b1733c2d5e5bb39bbaa9ec69c3.log V4-simple_repairable_emissions_f67490e60a0a79b1733c2d5e5bb39bbaa9ec69c3.log