diff --git a/testtools/python/pytest/metadata.json b/testtools/python/pytest/metadata.json index 86ec720..c8e4c1e 100644 --- a/testtools/python/pytest/metadata.json +++ b/testtools/python/pytest/metadata.json @@ -231,6 +231,27 @@ "desc": "**覆盖率采集包名**\n\n用于指定在代码覆盖率报告中需要保留的包名列表,多个包名用 `;` 分隔,填写相对路径。\n\n**示例**:\n```\n环境变量名称: TESTSOLAR_TTP_COVERAGECODEPACKAGES\n环境变量值: my_package;another_package\n```", "default": "", "inputWidget": "text" + }, + { + "name": "ignoreEncodeBackSlash", + "value": "是否避免编码数据驱动中的反斜杠字符", + "desc": "默认情况下插件会基于`datadrive.encode(\"unicode_escape\").decode()`来对用例的数据驱动进行编码\n某些情况下用例数据驱动中可能会包含反斜杠,在编码后可能会导致pytest无法找到对应用例\n通过开启该选项可以避免对反斜杠进行编码", + "default": "false", + "inputWidget": "switch" + }, + { + "name": "runAllCases", + "value": "单命令运行全部用例", + "desc": "默认情况下插件会基于解析所有方法用例来执行,通过开启该选项可以单命令运行全部用例", + "default": "false", + "inputWidget": "switch" + }, + { + "name": "fileExecuteMode", + "value": "文件执行模式", + "desc": "默认情况下插件会解析全部方法用例,通过开启该选项可以只执行文件级别的用例", + "default": "false", + "inputWidget": "switch" } ], "homePage": "https://github.com/OpenTestSolar/testtool-python-pytest", @@ -260,38 +281,38 @@ { "os": "windows", "arch": "amd64", - "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.37.tar.gz", - "sha256": "69f73c4723fed969e94bb266fe0665d1ceb084943462b1ea4c65d6888c098682" + "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.73.tar.gz", + "sha256": "c5661238f44d399813f75edec0806e1a8a9f69be348f1508b49e8c23cac99466" }, { "os": "windows", "arch": "arm64", - "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.37.tar.gz", - "sha256": "69f73c4723fed969e94bb266fe0665d1ceb084943462b1ea4c65d6888c098682" + "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.73.tar.gz", + "sha256": "c5661238f44d399813f75edec0806e1a8a9f69be348f1508b49e8c23cac99466" }, { "os": "linux", "arch": "amd64", - "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.37.tar.gz", - "sha256": "69f73c4723fed969e94bb266fe0665d1ceb084943462b1ea4c65d6888c098682" + "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.73.tar.gz", + "sha256": "c5661238f44d399813f75edec0806e1a8a9f69be348f1508b49e8c23cac99466" }, { "os": "linux", "arch": "arm64", - "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.37.tar.gz", - "sha256": "69f73c4723fed969e94bb266fe0665d1ceb084943462b1ea4c65d6888c098682" + "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.73.tar.gz", + "sha256": "c5661238f44d399813f75edec0806e1a8a9f69be348f1508b49e8c23cac99466" }, { "os": "darwin", "arch": "amd64", - "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.37.tar.gz", - "sha256": "69f73c4723fed969e94bb266fe0665d1ceb084943462b1ea4c65d6888c098682" + "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.73.tar.gz", + "sha256": "c5661238f44d399813f75edec0806e1a8a9f69be348f1508b49e8c23cac99466" }, { "os": "darwin", "arch": "arm64", - "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.37.tar.gz", - "sha256": "69f73c4723fed969e94bb266fe0665d1ceb084943462b1ea4c65d6888c098682" + "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.73.tar.gz", + "sha256": "c5661238f44d399813f75edec0806e1a8a9f69be348f1508b49e8c23cac99466" } ] }, @@ -1136,6 +1157,142 @@ "sha256": "69f73c4723fed969e94bb266fe0665d1ceb084943462b1ea4c65d6888c098682" } ] + }, + { + "meta": { + "schemaVersion": 1.0, + "name": "pytest", + "nameZh": "pytest自动化测试", + "legacyName": "", + "description": "pytest是一个成熟的全功能Python测试工具,可以帮助您编写更好的程序。此测试工具允许您在TestSolar上运行pytest。", + "version": "0.1.73", + "lang": "python", + "defaultBaseImage": "python:3.10", + "langType": "INTERPRETED", + "parameterDefs": [ + { + "name": "extraArgs", + "value": "额外命令行参数", + "desc": "额外命令行参数", + "default": "", + "inputWidget": "text" + }, + { + "name": "enableAllure", + "value": "是否用Allure生成报告", + "desc": "是否用[Allure](https://allurereport.org/docs/pytest/)生成报告。\n\n> 注意: \n> 1. 开启此开关后,报告数据仅来源于Allure生成的json文件。\n> 2. 用户需要自己安装Pytest的[allure插件](https://pypi.org/project/allure-pytest/)。", + "default": "false", + "choices": [ + { + "value": "true", + "displayName": "是", + "desc": "使用Allure生成报告" + }, + { + "value": "false", + "displayName": "否", + "desc": "不使用Allure生成报告" + } + ], + "inputWidget": "choices" + }, + { + "name": "enableCoverage", + "value": "是否生成覆盖率报告", + "desc": "是否生成覆盖率报告。\n\n> 注意:\n> 1. 开启此开关后,会采集覆盖率,并在报告中的覆盖率TAB页展示。", + "default": "false", + "inputWidget": "switch" + }, + { + "name": "coverageCodePackages", + "value": "覆盖率采集包名", + "desc": "**覆盖率采集包名**\n\n用于指定在代码覆盖率报告中需要保留的包名列表,多个包名用 `;` 分隔,填写相对路径。\n\n**示例**:\n```\n环境变量名称: TESTSOLAR_TTP_COVERAGECODEPACKAGES\n环境变量值: my_package;another_package\n```", + "default": "", + "inputWidget": "text" + }, + { + "name": "ignoreEncodeBackSlash", + "value": "是否避免编码数据驱动中的反斜杠字符", + "desc": "默认情况下插件会基于`datadrive.encode(\"unicode_escape\").decode()`来对用例的数据驱动进行编码\n某些情况下用例数据驱动中可能会包含反斜杠,在编码后可能会导致pytest无法找到对应用例\n通过开启该选项可以避免对反斜杠进行编码", + "default": "false", + "inputWidget": "switch" + }, + { + "name": "runAllCases", + "value": "单命令运行全部用例", + "desc": "默认情况下插件会基于解析所有方法用例来执行,通过开启该选项可以单命令运行全部用例", + "default": "false", + "inputWidget": "switch" + }, + { + "name": "fileExecuteMode", + "value": "文件执行模式", + "desc": "默认情况下插件会解析全部方法用例,通过开启该选项可以只执行文件级别的用例", + "default": "false", + "inputWidget": "switch" + } + ], + "homePage": "https://github.com/OpenTestSolar/testtool-python-pytest", + "versionFile": "https://testsolar-1321258242.cos.ap-guangzhou.myqcloud.com/testtools/python/pytest/metadata.json", + "indexFile": "https://testsolar-1321258242.cos.ap-guangzhou.myqcloud.com/testtools/stable.index.json", + "scaffoldRepo": "https://github.com/OpenTestSolar/testtool-scaffold-pytest", + "supportOS": [ + "windows", + "linux", + "darwin" + ], + "supportArch": [ + "amd64", + "arm64" + ], + "entry": { + "load": "python3 /testtools/pytest/src/load.py $1", + "run": "python3 /testtools/pytest/src/run.py $1" + }, + "repository": "https://github.com/OpenTestSolar/testtool-python-pytest", + "gitPkgUrl": "https://github.com/OpenTestSolar/testtool-python-pytest.git", + "httpPkgUrl": "https://testsolar-1321258242.cos.ap-guangzhou.myqcloud.com/testtools/python/pytest/metadata.json@stable", + "certified": true, + "testCatalog": "unit" + }, + "target": [ + { + "os": "windows", + "arch": "amd64", + "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.73.tar.gz", + "sha256": "c5661238f44d399813f75edec0806e1a8a9f69be348f1508b49e8c23cac99466" + }, + { + "os": "windows", + "arch": "arm64", + "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.73.tar.gz", + "sha256": "c5661238f44d399813f75edec0806e1a8a9f69be348f1508b49e8c23cac99466" + }, + { + "os": "linux", + "arch": "amd64", + "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.73.tar.gz", + "sha256": "c5661238f44d399813f75edec0806e1a8a9f69be348f1508b49e8c23cac99466" + }, + { + "os": "linux", + "arch": "arm64", + "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.73.tar.gz", + "sha256": "c5661238f44d399813f75edec0806e1a8a9f69be348f1508b49e8c23cac99466" + }, + { + "os": "darwin", + "arch": "amd64", + "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.73.tar.gz", + "sha256": "c5661238f44d399813f75edec0806e1a8a9f69be348f1508b49e8c23cac99466" + }, + { + "os": "darwin", + "arch": "arm64", + "downloadUrl": "https://github.com/OpenTestSolar/testtool-python-pytest/archive/refs/tags/0.1.73.tar.gz", + "sha256": "c5661238f44d399813f75edec0806e1a8a9f69be348f1508b49e8c23cac99466" + } + ] } ] } \ No newline at end of file diff --git a/testtools/stable.index.json b/testtools/stable.index.json index f0a04df..682338a 100644 --- a/testtools/stable.index.json +++ b/testtools/stable.index.json @@ -7,7 +7,7 @@ "nameZh": "pytest自动化测试", "legacyName": "", "description": "pytest是一个成熟的全功能Python测试工具,可以帮助您编写更好的程序。此测试工具允许您在TestSolar上运行pytest。", - "version": "0.1.37", + "version": "0.1.73", "lang": "python", "defaultBaseImage": "python:3.10", "langType": "INTERPRETED", @@ -51,6 +51,27 @@ "desc": "**覆盖率采集包名**\n\n用于指定在代码覆盖率报告中需要保留的包名列表,多个包名用 `;` 分隔,填写相对路径。\n\n**示例**:\n```\n环境变量名称: TESTSOLAR_TTP_COVERAGECODEPACKAGES\n环境变量值: my_package;another_package\n```", "default": "", "inputWidget": "text" + }, + { + "name": "ignoreEncodeBackSlash", + "value": "是否避免编码数据驱动中的反斜杠字符", + "desc": "默认情况下插件会基于`datadrive.encode(\"unicode_escape\").decode()`来对用例的数据驱动进行编码\n某些情况下用例数据驱动中可能会包含反斜杠,在编码后可能会导致pytest无法找到对应用例\n通过开启该选项可以避免对反斜杠进行编码", + "default": "false", + "inputWidget": "switch" + }, + { + "name": "runAllCases", + "value": "单命令运行全部用例", + "desc": "默认情况下插件会基于解析所有方法用例来执行,通过开启该选项可以单命令运行全部用例", + "default": "false", + "inputWidget": "switch" + }, + { + "name": "fileExecuteMode", + "value": "文件执行模式", + "desc": "默认情况下插件会解析全部方法用例,通过开启该选项可以只执行文件级别的用例", + "default": "false", + "inputWidget": "switch" } ], "homePage": "https://github.com/OpenTestSolar/testtool-python-pytest",