Open lieser opened 1 year ago
Good idea to detect the duration unit. I guess the unit does not change between runs of a workflow, so I guess setting time_unit: milliseconds
should work here. See `Options related to reporting test results' section in README.md.
Thanks for pointing me to the time unit setting, missed that. Works without a problem now, so the issue can be closed from my site.
Would of course still be nice if it could automatically detect the correct unit.
The JSON reporter included in Mocha reports the duration in seconds. The action assumes seconds however, resulting in a wrong duration in the published test results.
If the JSON file from Dart is using the same format but seconds for the duration, maybe it would be possible to use the difference between the included
start
andend
as a hint for the unit ofduration
?Example workflow with the issue: https://github.com/lieser/dkim_verifier/actions/runs/5306139976/jobs/9603566014