{"id":21028894,"url":"https://github.com/chamons/macios-test-template","last_synced_at":"2025-06-15T16:38:25.877Z","repository":{"id":87165378,"uuid":"171945600","full_name":"chamons/macios-test-template","owner":"chamons","description":"A prototype msbuild test templating system","archived":false,"fork":false,"pushed_at":"2019-02-21T22:54:46.000Z","size":240,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-13T19:16:27.788Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/chamons.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":"2019-02-21T21:08:06.000Z","updated_at":"2019-02-21T22:54:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2b02fec-cb8a-4816-946c-e5a9228adbb0","html_url":"https://github.com/chamons/macios-test-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chamons/macios-test-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chamons%2Fmacios-test-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chamons%2Fmacios-test-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chamons%2Fmacios-test-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chamons%2Fmacios-test-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chamons","download_url":"https://codeload.github.com/chamons/macios-test-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chamons%2Fmacios-test-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260009771,"owners_count":22945533,"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-19T11:59:34.079Z","updated_at":"2025-06-15T16:38:25.859Z","avatar_url":"https://github.com/chamons.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test template prototype for xamarin-macios\n\nToday testing msbuild projects in macios is divided into two seperate systems:\n\n- Xamarin.iOS uses in-process msbuild tests that are checked into source control.\n- Xamarin.Mac uses out-of-process msbuild tests that are generated from the tests.\n\nI prefer the Xamarin.Mac solution, however the infrastructure used to generate \nthose tests was organically grown (overgrew) over time and needs a serious cleanup pass.\n\nIn addition, it was hard coded strongly towards Xamarin.Mac'isms. \n\nThis project is a prototype for an alternative that could be shared and more easily extended.\n\n## How to use the API\n\n- You instance a TemplateEngine subclass either with a TemplateInfo or your flavor\\language\n    * MacAppTemplateEngine\n    * MacBindingTemplateEngine\n    * MacClassicAppTemplateEngine\n    * MacLibraryTemplateEngine\n    * MacSystemMonoTemplateEngine\n    * NetStandardTemplateEngine\n\n- Create a number of Substitutions classes (FileSubstitutions, PListSubstitutions, ProjectSubstitutions) which describe how you want to fill in the \"holes\" in the templates.\n\n- You call a Generate method passing in those substitutions and any additional options.\n\n### Example\n\n```csharp\nvar tmpDir = Cache.CreateTemporaryDirectory ();\n\nvar engine = new MacAppTemplateEngine (ProjectFlavor.FullXM, ProjectLanguage.CSharp);\nvar fileSubstitutions = new FileSubstitutions { TestCode = \"System.Console.WriteLine (typeof (int));\" };\nvar projectSubstitutions = new ProjectSubstitutions {\n\tReferences = \"\u003cReference Include=\\\"System.Net.Http\\\" /\u003e\",\n};\n\nstring projectPath = engine.Generate (tmpDir, projectSubstitutions, fileSubstitutions);\nProjectBuilder.BuildProject (projectPath, \"/\"); /* Use system XM instead of _mac-build today */\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchamons%2Fmacios-test-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchamons%2Fmacios-test-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchamons%2Fmacios-test-template/lists"}