Open dorchard opened 3 months ago
The method will be to replace function calls with the use of this higher order function in a branch, run through with the different test sites, and then bring the generated fixtures across.
JSON format discussion: https://github.com/Cambridge-ICCS/ONEFlux/issues/24
In order to generate test fixtures, we could use a higher-order function to replace function calls to log the inputs and outputs, e.g. of the form:
This also needs to handle multiple parameters and logging the input/outputs to files, with also some configuration (e.g., via some global constant) so we can identify where the test fixtures came from (i.e., which original data set).