{"id":19792057,"url":"https://github.com/xray-app/tutorials-java-gradle","last_synced_at":"2025-09-04T05:16:35.048Z","repository":{"id":119027850,"uuid":"510778633","full_name":"Xray-App/tutorials-java-gradle","owner":"Xray-App","description":"Tutorials showcasing the integration between Gradle and Xray Test Management","archived":false,"fork":false,"pushed_at":"2023-03-09T14:52:52.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-28T15:16:51.806Z","etag":null,"topics":["grade","jira","test-automation","testing","xray"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xray-App.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-05T14:47:49.000Z","updated_at":"2022-07-12T12:00:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"27f86815-b1f9-46f2-9a27-09b04d47ff2a","html_url":"https://github.com/Xray-App/tutorials-java-gradle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Xray-App/tutorials-java-gradle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xray-App%2Ftutorials-java-gradle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xray-App%2Ftutorials-java-gradle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xray-App%2Ftutorials-java-gradle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xray-App%2Ftutorials-java-gradle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xray-App","download_url":"https://codeload.github.com/Xray-App/tutorials-java-gradle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xray-App%2Ftutorials-java-gradle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273555459,"owners_count":25126316,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["grade","jira","test-automation","testing","xray"],"created_at":"2024-11-12T07:05:48.540Z","updated_at":"2025-09-04T05:16:35.033Z","avatar_url":"https://github.com/Xray-App.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tutorials-java-gradle\nTutorials showcasing the integration between Gradle and Xray Test Management.\n\n## Overview\n\nEach folder contains a project that can be built using Gradle (and also Maven, just for reference).\nThere are examples both for JUnit (4 and 5) and TestNG.\nA basic test class example is provided showcasing the chosen testing framework built-in capabilities (i.e., using only the built-in XML report provided by that framework).\nBesides, there's also an enhanced example that uses specific extensions for Xray, allowing users to embed additional information during the execution of the tests.\n\n- [junit4_basic](junit4_basic): some tests implemented using JUnit 4.13.x, generating a \"standard\" JUnit XML report\n- [junit5_basic](junit5_basic): some tests implemented using JUnit 5, generating a \"standard\" JUnit XML report\n- [junit5_enhanced](junit5_enhanced): some tests implemented using JUnit 5, using annotations and other capabilities from [xray-junit-extensions](https://github.com/Xray-App/xray-junit-extensions), generating an enhanced JUnit XML report that Xray can process\n- [testng_basic](testng_basic): some tests implemented using TestNG 7.6.x, generating a \"standard\" TestNG XML report\n- [testng_enhanced](testng_enhanced): some tests implemented using TestNG 7.6.x, using annotations and other capabilities from [xray-testng-extensions](https://github.com/bitcoder/xray-testng-extensions), generating a enhanced TestNG XML report that Xray can process\n\n## Prerequisites\nIn order to run this tutorial you need to have Java 11+ and Gradle 7.4.2+.\n\n## Running\nTests can be executed locally with the following command\n```\ngradle clean compileJava test\n```\n\nTo generate the enhanced TestNG XML report that Xray can process (as shown on [testng_enhanced](testng_enhanced)), we need to run the tests with a custom task. For more info, check build.gradle.\n```\ngradle clean compileJava testngTest\n```\n\n## Submitting results to Jira using Xray\n\nResults can be submitted to Jira so that they can be shared with the team and their impacts be easily analysed using Xray Test Management.\n\nFor Xray on Jira Cloud, depending on the testing framework used, one of the following tasks is available in these examples:\n```\ngradle importJunitResultsToXrayCloud\ngradle importTestNGResultsToXrayCloud\n```\n\nFor Xray on Jira server/datacenter, depending on the testing framework used, one of the following tasks is available in these examples:\n```\ngradle importJunitResultsToXrayDC\ngradle importTestNGResultsToXrayDC\n```\n\n## Contact\n\nAny questions related with this code, please raise issues in this GitHub project. Feel free to contribute and submit PR's.\nFor Xray specific questions, please contact [Xray's support team](https://jira.getxray.app/servicedesk/customer/portal/2).\n\n## References\n\n- [Integration between Xray and Gradle]()\n\n## LICENSE\n\n[BSD 3-Clause](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxray-app%2Ftutorials-java-gradle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxray-app%2Ftutorials-java-gradle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxray-app%2Ftutorials-java-gradle/lists"}