{"id":17019033,"url":"https://github.com/robert-96/junit-reporter","last_synced_at":"2025-04-05T20:14:42.551Z","repository":{"id":60529524,"uuid":"354117786","full_name":"Robert-96/junit-reporter","owner":"Robert-96","description":"A Python3 package that generates test results in the standard JUnit XML format for use with Jenkins and other build integration servers.","archived":false,"fork":false,"pushed_at":"2024-05-02T01:37:51.000Z","size":694,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T01:48:07.265Z","etag":null,"topics":["junit","python","test","testing","testing-tools","xml"],"latest_commit_sha":null,"homepage":"https://junit-reporter.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Robert-96.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-02T19:46:17.000Z","updated_at":"2023-03-14T21:08:31.000Z","dependencies_parsed_at":"2024-04-30T16:01:25.828Z","dependency_job_id":null,"html_url":"https://github.com/Robert-96/junit-reporter","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"703e558b0599997620a0ab6a3a7d266e72e74871"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robert-96%2Fjunit-reporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robert-96%2Fjunit-reporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robert-96%2Fjunit-reporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robert-96%2Fjunit-reporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Robert-96","download_url":"https://codeload.github.com/Robert-96/junit-reporter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393573,"owners_count":20931813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["junit","python","test","testing","testing-tools","xml"],"created_at":"2024-10-14T06:47:50.964Z","updated_at":"2025-04-05T20:14:42.497Z","avatar_url":"https://github.com/Robert-96.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# junit-reporter\n\nA Python3 package that generates test results in the standard JUnit XML format for use with Jenkins and other build integration servers.\n\n## Installation\n\nUse the following command to install ``junit-reporter``:\n\n```\n$ pip install junit-reporter\n```\n\n## Quickstart\n\nCreate a test report:\n\n```python\nfrom junit_reporter import TestCase, TestSuite, JUnitReporter\n\ntest_case = TestCase('Test #1', classname='some.class.name', stdout='I am stdout!', stderr='I am stderr!')\ntest_suite = TestSuite('Test Suite #1', [test_case])\n\nxml = JUnitReporter.report_to_string([test_suite])\n```\n\nIt produces the following output:\n\n```xml\n\u003c?xml version=\"1.0\" ?\u003e\n\u003ctestsuites disabled=\"0\" errors=\"0\" failures=\"0\" tests=\"1\" time=\"0\"\u003e\n    \u003ctestsuite name=\"Test Suite #1\" tests=\"1\" assertions=\"0\" disabled=\"0\" errors=\"0\" failures=\"0\" skipped=\"0\" time=\"0\"\u003e\n        \u003ctestcase name=\"Test #1\" classname=\"some.class.name\"\u003e\n            \u003csystem-out\u003eI am stdout!\u003c/system-out\u003e\n            \u003csystem-err\u003eI am stderr!\u003c/system-err\u003e\n        \u003c/testcase\u003e\n    \u003c/testsuite\u003e\n\u003c/testsuites\u003e\n```\n\n## Running the tests\n\n```\n$ pytest tests\n```\n\n## License\n\nThis project is licensed under the [GNU General Public License v3.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobert-96%2Fjunit-reporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobert-96%2Fjunit-reporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobert-96%2Fjunit-reporter/lists"}