Skip to content

Feature Request: Easy use of pytest-html #670

@innicoder

Description

@innicoder

Part 1

I think there should be an easy way to choose the columns and some way to configure it without actually diving deep because it isn't even working for me.

I think the library should provide a way to configure columns, let's say that we keep the default columns, which are Result, Test, Duration, Link.

I would like to add to an env, just like timestamp, remove link and duration, add result summary (actual error / short version).

Part 2

The other feature I would like to have is instead of Failed or Passed. I'm fine with Passed but I would like to know which Error and outline it in Red for instance..

Instead of Failed, KeyError.


Quick ask if anyone knows, how to add the to the result table (all the solutions didn't work properly like online and docs). Currently I'm looking for adding Error Type to the header and Exception Message (short).

Result Test Duration Links Error Type Summary
Failed TestAcceptance::test_single_case 0.90 KeyError KeyError: 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions