{"id":18360819,"url":"https://github.com/unb-libraries/drupal-trupal","last_synced_at":"2025-04-10T03:37:57.570Z","repository":{"id":57073078,"uuid":"331989849","full_name":"unb-libraries/drupal-trupal","owner":"unb-libraries","description":"Trupal test generation for Drupal.","archived":false,"fork":false,"pushed_at":"2021-05-21T19:48:32.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"dev","last_synced_at":"2025-02-15T18:53:29.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/unb-libraries.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}},"created_at":"2021-01-22T15:44:56.000Z","updated_at":"2021-05-21T19:48:34.000Z","dependencies_parsed_at":"2022-08-24T14:54:39.726Z","dependency_job_id":null,"html_url":"https://github.com/unb-libraries/drupal-trupal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unb-libraries%2Fdrupal-trupal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unb-libraries%2Fdrupal-trupal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unb-libraries%2Fdrupal-trupal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unb-libraries%2Fdrupal-trupal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unb-libraries","download_url":"https://codeload.github.com/unb-libraries/drupal-trupal/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154011,"owners_count":21056534,"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-05T22:29:54.277Z","updated_at":"2025-04-10T03:37:57.551Z","avatar_url":"https://github.com/unb-libraries.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trupal for Drupal\nDrupal module to support automatic test generation using Trupal.\n\n# Installation\n`composer require --dev unb-libraries/dupal-trupal`\n\n# Usage\n\n## Generate a test case for a Drupal module\n\nPlace a subject definition in `/path/to/your/module/tests/trupal` and assign a unique name, e.g. `test_page.yml`:\n\n```yaml\nid: 'test_page'\ntype: 'page'\nurl: '/test/page/1'\npublic: FALSE\ngrant_access:\n  - member\n```\n\nNext, run\n\n`drush tgm test_module`\n\nWhich will generate tests for all `test_module` subjects. Rendered test cases will by default be placed under\n\n`\u003cDRUPAL_ROOT\u003e/modules/test_module/tests/behat/features/test_page.feature`\n\nIf you assign a different ID than the one in the example, that ID will be used to name the rendered test case.\n\nNow execute tests as you would otherwise.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funb-libraries%2Fdrupal-trupal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funb-libraries%2Fdrupal-trupal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funb-libraries%2Fdrupal-trupal/lists"}