[tools]Update stats.py to save the result in a csv file

Update the ref and bdd tests coverage
Update the Upstream test coverage
Output the result to coverage.csv