When running shard tests every execution of dart test, flutter test try to add their output to the same file in /metrics.json causing problems parsing the results and adding garbled content. Instead the files should be generated in a temporary folder.