Giter Site home page Giter Site logo

yongchin0821 / pywebreport Goto Github PK

View Code? Open in Web Editor NEW
27.0 1.0 3.0 287 KB

Generate html reports by sources such as unittest、pytest

Home Page: https://yongchin0821.github.io/pywebreport/

Python 24.11% Shell 0.35% HTML 48.35% CSS 27.06% JavaScript 0.13%
html-report pytest-report unittest-report python-report

pywebreport's Issues

参数化运行中,参数中带有.时,报告生成失败

  • 用例
import pytest as pytest

class TestApp:
    @pytest.mark.parametrize("url", ['device_address'])
    @pytest.mark.parametrize("case", ["cases.py"])
    def test_ui_app(self, url, case):
        print(url)
        print(case)

if __name__ == '__main__':
    args = ['./', '-q', '--report', 'result/report.html']
    pytest.main(args)
  • 报错

image

  • 问题

.分割时,当参数化运行中,参数中带有.时,KeyError

case_name = results.head_line.split('.')[-1]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.