container-structure-test icon indicating copy to clipboard operation
container-structure-test copied to clipboard

Junit output time appears to be using nanoseconds instead of seconds

Open crafton opened this issue 2 years ago • 0 comments

Hi:

I realise that the Junit xml output is presenting the duration time in nanoseconds. I think typically the Junit time attribute is presented in seconds where fractions are represented as floating point numbers. Are you aware of this behaviour? Is there some context behind the choice of nanoseconds?

See sample output below:

Thanks,

    <testsuite>
        <testcase name="Command Test: somecli" time="548392417"></testcase>
        <testcase name="Command Test: curl" time="228741708"></testcase>
        <testcase name="Command Test: git" time="392738000"></testcase>
        <testcase name="Command Test: jq" time="207920500"></testcase>
        <testcase name="Command Test: openssh-client" time="224292667"></testcase>
        <testcase name="File Existence Test: custom.sh" time="0"></testcase>
        <testcase name="Metadata Test" time="0"></testcase>
    </testsuite>
</testsuites>```

crafton avatar May 31 '22 00:05 crafton