GavinReportPro


NameGavinReportPro JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryReport for unittest
upload_time2024-08-06 03:29:54
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseNone
keywords gavin gavinhaydy ruffian gavinreportpro
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![](https://img.shields.io/badge/Version-1.0.0-green.svg)
![](https://img.shields.io/badge/License-MIT-orange.svg)
![](https://img.shields.io/badge/Python-3-green.svg)

# Introduction
```text
Modified based on unittestreport
Added automatic screenshot and picture display for assertion failure
Added the lark Robot api
```

# Install
```text
pip install TheRuffianReportPro
```

# Author
```text
name:TheRuffian
email:bugpz2779@gmail.com
email:theruffian@163.com
```

# Instructions for use
### Case

```python
import unittest
from selenium import webdriver
from GavinReportPro.common import failure_monitor


class Test_demo(unittest.TestCase):
    def setUp(self) -> None:
        self.driver = webdriver.Chrome()
        self.failureException = failure_monitor(self, 'images')
        self.driver.get("url")

    def test_example(self):
        self.driver.find_element(By, Element).send_keys(keyword)
        self.driver.find_element(By, Element).click()
        self.assertEqual(first, second)  # Take a screenshot if the first assertion fails 

```
### Run

```python
import unittest
from GavinReportPro.core.testRunner import TestRunner
from case.xxx import Test_demo

runner = TestRunner(unittest.TestLoader().loadTestsFromTestCase(Test_demo),
                    filename='report.html',
                    report_dir='./Report',
                    templates=3)
runner.run()
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "GavinReportPro",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "Gavin, GavinHaydy, ruffian, GavinReportPro",
    "author": null,
    "author_email": "GavinHaydy <bugpz2779@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/3e/ed/75a2f8ac6c426ac35823a8765938bea1a6440531387129b08195aa79ea80/gavinreportpro-1.0.0.tar.gz",
    "platform": null,
    "description": "![](https://img.shields.io/badge/Version-1.0.0-green.svg)\n![](https://img.shields.io/badge/License-MIT-orange.svg)\n![](https://img.shields.io/badge/Python-3-green.svg)\n\n# Introduction\n```text\nModified based on unittestreport\nAdded automatic screenshot and picture display for assertion failure\nAdded the lark Robot api\n```\n\n# Install\n```text\npip install TheRuffianReportPro\n```\n\n# Author\n```text\nname:TheRuffian\nemail:bugpz2779@gmail.com\nemail:theruffian@163.com\n```\n\n# Instructions for use\n### Case\n\n```python\nimport unittest\nfrom selenium import webdriver\nfrom GavinReportPro.common import failure_monitor\n\n\nclass Test_demo(unittest.TestCase):\n    def setUp(self) -> None:\n        self.driver = webdriver.Chrome()\n        self.failureException = failure_monitor(self, 'images')\n        self.driver.get(\"url\")\n\n    def test_example(self):\n        self.driver.find_element(By, Element).send_keys(keyword)\n        self.driver.find_element(By, Element).click()\n        self.assertEqual(first, second)  # Take a screenshot if the first assertion fails \n\n```\n### Run\n\n```python\nimport unittest\nfrom GavinReportPro.core.testRunner import TestRunner\nfrom case.xxx import Test_demo\n\nrunner = TestRunner(unittest.TestLoader().loadTestsFromTestCase(Test_demo),\n                    filename='report.html',\n                    report_dir='./Report',\n                    templates=3)\nrunner.run()\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Report for unittest",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/GavinHaydy/TheRuffianReportPro",
        "download_page": "https://codeload.github.com/GavinHaydy/TheRuffianReportPro/zip/refs/heads/master"
    },
    "split_keywords": [
        "gavin",
        " gavinhaydy",
        " ruffian",
        " gavinreportpro"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2bd489f38d4ac6f28676ac4f8e00479960511813598b35228476d2521fd8ccd7",
                "md5": "ace058a18852f0c6f3431d99e9612354",
                "sha256": "20ab706ec399ea3213024fb2cae5e427795aca54b2b59a46e548f30d7b9b86d0"
            },
            "downloads": -1,
            "filename": "GavinReportPro-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ace058a18852f0c6f3431d99e9612354",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 59716,
            "upload_time": "2024-08-06T03:29:51",
            "upload_time_iso_8601": "2024-08-06T03:29:51.363476Z",
            "url": "https://files.pythonhosted.org/packages/2b/d4/89f38d4ac6f28676ac4f8e00479960511813598b35228476d2521fd8ccd7/GavinReportPro-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3eed75a2f8ac6c426ac35823a8765938bea1a6440531387129b08195aa79ea80",
                "md5": "f4dd625bab02b7455c0a98905ba0cc68",
                "sha256": "501d70dafcef33f6d1644eb65f2454f208ee6cf216bd5a99adc9d6942b0fc397"
            },
            "downloads": -1,
            "filename": "gavinreportpro-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f4dd625bab02b7455c0a98905ba0cc68",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 50956,
            "upload_time": "2024-08-06T03:29:54",
            "upload_time_iso_8601": "2024-08-06T03:29:54.335424Z",
            "url": "https://files.pythonhosted.org/packages/3e/ed/75a2f8ac6c426ac35823a8765938bea1a6440531387129b08195aa79ea80/gavinreportpro-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-06 03:29:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "GavinHaydy",
    "github_project": "TheRuffianReportPro",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "gavinreportpro"
}
        
Elapsed time: 8.10599s