{"id":18459176,"url":"https://github.com/smartbear/cucumber-jvm-zephyr-xml","last_synced_at":"2025-04-08T05:34:58.255Z","repository":{"id":51502664,"uuid":"239745912","full_name":"SmartBear/cucumber-jvm-zephyr-xml","owner":"SmartBear","description":"Extension of the official JUnitFormatter with extra XML elements","archived":false,"fork":false,"pushed_at":"2025-02-17T13:43:46.000Z","size":83,"stargazers_count":2,"open_issues_count":1,"forks_count":4,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-03-23T07:12:18.431Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/SmartBear.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-02-11T11:29:51.000Z","updated_at":"2025-02-17T13:37:27.000Z","dependencies_parsed_at":"2024-11-06T08:26:35.327Z","dependency_job_id":"f7562daa-627f-4ee2-9e01-0deab39a42b2","html_url":"https://github.com/SmartBear/cucumber-jvm-zephyr-xml","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fcucumber-jvm-zephyr-xml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fcucumber-jvm-zephyr-xml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fcucumber-jvm-zephyr-xml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fcucumber-jvm-zephyr-xml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SmartBear","download_url":"https://codeload.github.com/SmartBear/cucumber-jvm-zephyr-xml/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247785918,"owners_count":20995641,"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":[],"created_at":"2024-11-06T08:22:08.370Z","updated_at":"2025-04-08T05:34:53.239Z","avatar_url":"https://github.com/SmartBear.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Java CI with Maven](https://github.com/SmartBear/cucumber-jvm-zephyr-xml/workflows/Java%20CI%20with%20Maven/badge.svg)](https://github.com/SmartBear/cucumber-jvm-zephyr-xml/actions?query=workflow%3A%22Java+CI+with+Maven%22)\n\n# cucumber-jvm-zephyr-xml\n\nThis Cucumber-JVM plugin generates JUnit XML with proprietary modifications to support Zephyr.\n\n**Warning**: This plugin outputs additional XML elements that are **incompatible**\nwith widely used XML schemas that validate the generated XML:\n\n* [jenkins-junit.xsd](https://github.com/junit-team/junit5/blob/main/platform-tests/src/test/resources/jenkins-junit.xsd)\n* [various other schemas](https://stackoverflow.com/questions/442556/spec-for-junit-xml-output)\n\nAdding these extra XML elements in the official `JUnitXmlFormatter` would cause\nvalidation errors for all users using one of the validation schemas above.\n\nFor this reason this plugin is a fork of the `JUnitXmlFormatter`. It has been forked from [Cucumber-JVM 4.2.6](https://github.com/cucumber/cucumber-jvm/blob/main/CHANGELOG.md#426-2019-03-06).\n\n## Custom `\u003crequirements\u003e` element\n\nAny tags in the feature file starting with `@JIRA_` will be outputted to the XML.\n\nFor example:\n\n```gherkin\n@JIRA_XYZ-1 @JIRA_XYZ-1 @smoke-test\nFeature: something\n```\n\nThis will output the following snippet in the generated XML\n\n```xml\n\u003crequirements\u003e\n  \u003crequirement\u003eAltID_XYZ-1\u003c/requirement\u003e\n  \u003crequirement\u003eAltID_XYZ-2\u003c/requirement\u003e\n\u003c/requirements\u003e\n```\n\nThe plugin will replace `@JIRA_` with `AltID_` in the generated XML.\n\n## Using `\u003ctags\u003e` element\n\n`@` tags in the feature file which are not recognised as requirements (see above), will be inserted into the XML results file as tag nodes.\n\nFor example:\n\n```gherkin\n@JIRA_XYZ-1 @JIRA_XYZ-1 @smoke-test\nFeature: something\n```\n\nThis will collect the first two tags as requirements and the last `@` tag will be a tag for the zephyr tescase.\n\nHere is an example of a single tag in the XML file:\n```xml\n\u003ctags\u003e                          ---//  tags: parent element\n\u003ctag\u003eFeature1\u003c/tag\u003e             ---// tag : child element\n\u003c/tags\u003e  \n```\n\nHere is an example of multiple tags in the XML file:\n```xml\n\u003ctags\u003e\n\u003ctag\u003eBVT1\u003c/tag\u003e\n\u003ctag\u003eBVT2\u003c/tag\u003e\n\u003c/tags\u003e\n```\n\n## Usage:\n\nAdd the dependency to your pom.xml:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.cucumber\u003c/groupId\u003e\n    \u003cartifactId\u003ezephyr-xml-formatter\u003c/artifactId\u003e\n    \u003cversion\u003e6.11.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nAdd the following to your JUnit class:\n\n```java\n@RunWith(Cucumber.class)\n@CucumberOptions(plugin = {\"io.cucumber.zephyr.ZephyrXMLFormatter:target/zephyr.xml\"})\n```\n\n## Maintenance\n\nThis plugin is maintained by the SmartBear Zephyr team.\n\n## Release process\n\n* Update the version number in `pom.xml`.\n* Update `CHANGELOG.md` to reflect the changes since the previous release.\n* Commit your files.\n* Tag the `master` branch with the version number (e.g. `vX.Y.Z`).\n* Create the release branch in the form `release/vX.Y.Z` to automatically publish.\n\n### Manual Publish\n\nContact somebody from the Cucumber Open core team to get access to secrets.\n\n```bash\nmake docker-run-with-secrets\nmake release\n```\n\nThis should tag the git repository and upload artefacts to Maven Central.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartbear%2Fcucumber-jvm-zephyr-xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartbear%2Fcucumber-jvm-zephyr-xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartbear%2Fcucumber-jvm-zephyr-xml/lists"}