{"id":37757765,"url":"https://github.com/allankp/pytest-testrail","last_synced_at":"2026-01-25T16:15:17.516Z","repository":{"id":44942208,"uuid":"50239525","full_name":"allankp/pytest-testrail","owner":"allankp","description":"pytest plugin for integration with TestRail, for creating testruns and updating results","archived":false,"fork":false,"pushed_at":"2024-12-30T13:43:45.000Z","size":159,"stargazers_count":97,"open_issues_count":20,"forks_count":123,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-01-17T01:23:55.126Z","etag":null,"topics":["hacktoberfest","pytest","python","python3","testing","testing-tool","testrail"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allankp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-23T13:30:03.000Z","updated_at":"2025-09-28T22:00:09.000Z","dependencies_parsed_at":"2026-01-25T16:03:26.336Z","dependency_job_id":null,"html_url":"https://github.com/allankp/pytest-testrail","commit_stats":null,"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/allankp/pytest-testrail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allankp%2Fpytest-testrail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allankp%2Fpytest-testrail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allankp%2Fpytest-testrail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allankp%2Fpytest-testrail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allankp","download_url":"https://codeload.github.com/allankp/pytest-testrail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allankp%2Fpytest-testrail/sbom","scorecard":{"id":185110,"data":{"date":"2025-08-11","repo":{"name":"github.com/allankp/pytest-testrail","commit":"a114c8cd4987157f1579da12b5a1e0d7d1b3943a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 4/30 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push_builder.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/allankp/pytest-testrail/push_builder.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push_builder.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/allankp/pytest-testrail/push_builder.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/allankp/pytest-testrail/pythonpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/allankp/pytest-testrail/pythonpublish.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/push_builder.yml:18","Warn: pipCommand not pinned by hash: .github/workflows/push_builder.yml:19","Warn: pipCommand not pinned by hash: .github/workflows/push_builder.yml:20","Warn: pipCommand not pinned by hash: .github/workflows/push_builder.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/pythonpublish.yml:20","Warn: pipCommand not pinned by hash: .github/workflows/pythonpublish.yml:21","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/push_builder.yml:1","Warn: no topLevel permission defined: .github/workflows/pythonpublish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T19:39:15.810Z","repository_id":44942208,"created_at":"2025-08-16T19:39:15.811Z","updated_at":"2025-08-16T19:39:15.811Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28755111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T13:59:49.818Z","status":"ssl_error","status_checked_at":"2026-01-25T13:59:33.728Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","pytest","python","python3","testing","testing-tool","testrail"],"created_at":"2026-01-16T14:32:41.154Z","updated_at":"2026-01-25T16:15:17.499Z","avatar_url":"https://github.com/allankp.png","language":"Python","readme":"pytest-testrail\n===============\n\n![](https://github.com/allankp/pytest-testrail/workflows/master/badge.svg)\n[![PyPI version](https://badge.fury.io/py/pytest-testrail.svg)](https://badge.fury.io/py/pytest-testrail)\n[![Downloads](https://pepy.tech/badge/pytest-testrail)](https://pepy.tech/project/pytest-testrail)\n\nThis is a pytest plugin for creating/editing testplans or testruns based on pytest markers.\nThe results of the collected tests will be updated against the testplan/testrun in TestRail.\n\nInstallation\n------------\n\n    pip install pytest-testrail\n\nConfiguration\n-------------\n\n### Config for Pytest tests\n\nAdd a marker to the tests that will be picked up to be added to the run.\n\n```python\n    from pytest_testrail.plugin import testrail\n\n    @testrail('C1234', 'C5678')\n    def test_foo():\n        # test code goes here\n\n    # OR\t\n\n    from pytest_testrail.plugin import pytestrail\n\n    @pytestrail.case('C1234', 'C5678')\n    def test_bar():\n        # test code goes here\n```\n\nOr if you want to add defects to testcase result:\n\n```python\n\n    from pytest_testrail.plugin import pytestrail\n\n    @pytestrail.defect('PF-524', 'BR-543')\n    def test_bar():\n        # test code goes here\n```\n\n### Config for TestRail\n\n* Settings file template config:\n\n```ini\n    [API]\n    url = https://yoururl.testrail.net/\n    email = user@email.com\n    password = \u003capi_key\u003e\n\n    [TESTRUN]\n    assignedto_id = 1\n    project_id = 2\n    suite_id = 3\n    plan_id = 4\n    description = 'This is an example description'\n\n    [TESTCASE]\n    custom_comment = 'This is a custom comment'\n```\n\nOr\n\n* Set command line options (see below)\n\nUsage\n-----\n\nBasically, the following command will create a testrun in TestRail, add all marked tests to run.\nOnce the all tests are finished they will be updated in TestRail:\n\n```bash\n    py.test --testrail --tr-config=\u003csettings file\u003e.cfg\n```\n\n### All available options\n\n| option                         | description                                                                                                                                        |\n| -------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| --testrail                     | Create and update testruns with TestRail                                                                                                           |\n| --tr-config                    | Path to the config file containing information about the TestRail server (defaults to testrail.cfg)                                                |\n| --tr-url                       | TestRail address you use to access TestRail with your web browser (config file: url in API section)                                                |\n| --tr-email                     | Email for the account on the TestRail server (config file: email in API section)                                                                   |\n| --tr-password                  | Password for the account on the TestRail server (config file: password in API section)                                                             |\n| --tr-testrun-assignedto-id     | ID of the user assigned to the test run (config file:assignedto_id in TESTRUN section)                                                             |\n| --tr-testrun-project-id        | ID of the project the test run is in (config file: project_id in TESTRUN section)                                                                  |\n| --tr-testrun-suite-id          | ID of the test suite containing the test cases (config file: suite_id in TESTRUN section)                                                          |\n| --tr-testrun-suite-include-all | Include all test cases in specified test suite when creating test run (config file: include_all in TESTRUN section)                                |\n| --tr-testrun-name              | Name given to testrun, that appears in TestRail (config file: name in TESTRUN section)                                                             |\n| --tr-testrun-description       | Description given to testrun, that appears in TestRail (config file: description in TESTRUN section)                                               |\n| --tr-run-id                    | Identifier of testrun, that appears in TestRail. If provided, option \"--tr-testrun-name\" will be ignored                                           |\n| --tr-plan-id                   | Identifier of testplan, that appears in TestRail (config file: plan_id in TESTRUN section) If provided, option \"--tr-testrun-name\" will be ignored |\n| --tr-version                   | Indicate a version in Test Case result.                                                                                                            |\n| --tr-no-ssl-cert-check         | Do not check for valid SSL certificate on TestRail host                                                                                            |\n| --tr-close-on-complete         | Close a test plan or test run on completion.                                                                                                       |\n| --tr-dont-publish-blocked      | Do not publish results of \"blocked\" testcases in TestRail                                                                                          |\n| --tr-skip-missing              | Skip test cases that are not present in testrun                                                                                                    |\n| --tr-milestone-id              | Identifier of milestone to be assigned to run                                                                                                      |\n| --tc-custom-comment            | Custom comment, to be appended to default comment for test case (config file: custom_comment in TESTCASE section)                                  |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallankp%2Fpytest-testrail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallankp%2Fpytest-testrail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallankp%2Fpytest-testrail/lists"}