pytest-html icon indicating copy to clipboard operation
pytest-html copied to clipboard

Duration column does not sort numerically

Open JCBdM opened this issue 4 years ago • 5 comments

When ordering the test list by duration I obtain:

Result Test Duration Links
Passed test_a 9.31
Passed test_d 47.04
Passed test_b 4.52
Passed test_c 1.63

This order is done by alphanumeric and not by duration.

JCBdM avatar Apr 08 '21 08:04 JCBdM

See https://github.com/pytest-dev/pytest-html/issues/413

fenchu avatar Apr 15 '21 07:04 fenchu

If PR #464 solves the issue, that would be fantastic. Is anyone looking into its efficacy?

SoCalLongboard avatar Dec 15 '21 23:12 SoCalLongboard

~@BeyondEvil Did you get a chance to look into this feature?~

~I can help with this, as I would like for this feature to work for my project's usecase.~

[Ignore the above]

Thanks for taking care of this in https://github.com/pytest-dev/pytest-html/commit/ae54ee6277b0a6b4b3ee760bc09b8799046342e8.

akhilramkee avatar Aug 08 '23 16:08 akhilramkee

~@BeyondEvil Did you get a chance to look into this feature?~

~I can help with this, as I would like for this feature to work for my project's usecase.~

[Ignore the above]

Thanks for taking care of this in ae54ee6.

Can you try 4.0.0rc5?

BeyondEvil avatar Aug 08 '23 16:08 BeyondEvil