How to generate reports in Behave-Python?

前端 未结 5 1004
野趣味
野趣味 2020-12-17 03:35

For Java there are external report generation tools like extent-report,testNG. The Junit produces the xml format output for individual feature file. To get a detailed report

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-17 03:56

    Behave can also generate reports in jUnit XML format. You can enable this feature simply by adding --junit to the commandline [1]. More info about formatters and reporters here [2].

    $ behave --junit

    [1] http://pythonhosted.org/behave/behave.html?highlight=#cmdoption--junit

    [2] http://pythonhosted.org/behave/formatters.html

提交回复
热议问题