{"id":22583051,"url":"https://github.com/wooga/spock-unity-version-manager-extension","last_synced_at":"2025-08-05T02:31:49.365Z","repository":{"id":39198933,"uuid":"244857083","full_name":"wooga/spock-unity-version-manager-extension","owner":"wooga","description":"unity version manager spock extension","archived":false,"fork":false,"pushed_at":"2023-08-22T13:25:15.000Z","size":153,"stargazers_count":0,"open_issues_count":5,"forks_count":2,"subscribers_count":30,"default_branch":"master","last_synced_at":"2024-11-15T09:50:00.033Z","etag":null,"topics":["gradle","java","wdk"],"latest_commit_sha":null,"homepage":"","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wooga.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":"2020-03-04T09:20:10.000Z","updated_at":"2023-06-19T16:22:24.000Z","dependencies_parsed_at":"2024-11-19T02:01:53.219Z","dependency_job_id":null,"html_url":"https://github.com/wooga/spock-unity-version-manager-extension","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/wooga%2Fspock-unity-version-manager-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooga%2Fspock-unity-version-manager-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooga%2Fspock-unity-version-manager-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooga%2Fspock-unity-version-manager-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wooga","download_url":"https://codeload.github.com/wooga/spock-unity-version-manager-extension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228694074,"owners_count":17958191,"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":["gradle","java","wdk"],"created_at":"2024-12-08T06:13:24.305Z","updated_at":"2024-12-08T06:13:24.832Z","avatar_url":"https://github.com/wooga.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"spock-unity-version-manager-extension\n=====================================\n\n[![Coverage Status](https://coveralls.io/repos/github/wooga/spock-unity-version-manager-extension/badge.svg?branch=master)](https://coveralls.io/github/wooga/spock-unity-version-manager-extension?branch=master)\n\n@UnityInstallation\n------------------\n\nThis spock extension allows to install Unity versions before test runs. The return value will be a `Installation` object with information about the location und path to the unity executable.\nBe aware the installation process can be very time consuming.\n\n### Example\n\n```groovy\nclass ExampleSpec extends Specification {\n    @Shared\n    @UnityInstallation(version=\"2018.4.12f1\")\n    Installation unity\n\n    @Shared\n    @UnityInstallation(version = \"2019.3.3f1\", modules = [Component.android, Component.ios])\n    Installation unityWithModules\n\n    def \"execute unity build\"() {\n        expect:\n        unity.location.exists()\n        unityWithModules.location.exists()\n    }\n}\n```\n\nIt is also possible to inject a test repository directly into a feature method\n\n```groovy\n    @UnityInstallation(version=\"2018.4.12f1\")\n    @Unroll\n    def \"execute unity build\"(Installation unity) {\n        expect:\n        unity.location.exists()\n    }\n\n    @UnityInstallation(version = \"2019.3.3f1\", cleanup = true)\n    def \"feature has unity installed before execution\"(String a, String b, Installation installation) {\n        expect:\n        installation.location.exists()\n        UnityVersionManager.locateUnityInstallation(\"2019.3.3f1\")\n\n        where:\n        a      | b\n        \"test\" | \"test2\"\n        installation = null\n    }\n```\n\nThe `@GithubRepository` supports the following parameters:\n\n| name                      | default                          | description                                                                                         |\n| ------------------------- | -------------------------------- | --------------------------------------------------------------------------------------------------- |\n| version                   |                                  | The version of unity to be installed                                                                | \n| basePath                  |                                  | An optional base path to install unity to. The final destination will be `${basePath}/Unity-${version}` |\n| modules                   | []                               | A list of `Component` to be installed                                                                  |\n| cleanup                   | false                            | Delete the version after the test run. The version will always be installed in temporary location when the value is `true` |\n\nLICENSE\n=======\n\nCopyright 2020 Wooga GmbH\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n\n[unity-version-manager]: github.com/Larusso/unity-version-manager\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooga%2Fspock-unity-version-manager-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwooga%2Fspock-unity-version-manager-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooga%2Fspock-unity-version-manager-extension/lists"}