1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] how to customize html report file generated using py.test?

Discussão em 'Python' iniciado por Stack, Setembro 8, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to customize html report using pytest. For example, if I've got a directory structure like:

    tests
    temp1
    test_temp1.py
    conftest.py


    A conftest.py file is also in the tests directory, and it should be common to all the sub-directories in the tests directory. What fixtures and hookwrappers can I use in the conftest.py to change the contents of the html file generated using the following command:


    py.test tests/temp1/test_temp1.py --html=report.html
    ​

    Continue reading...

Compartilhe esta Página