{"id":18360785,"url":"https://github.com/unb-libraries/trupal","last_synced_at":"2025-04-10T03:37:55.743Z","repository":{"id":57073108,"uuid":"224873086","full_name":"unb-libraries/trupal","owner":"unb-libraries","description":"Auto-generate automated testing.","archived":false,"fork":false,"pushed_at":"2021-05-07T15:15:15.000Z","size":393,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"dev","last_synced_at":"2025-02-15T18:53:27.716Z","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":"2019-11-29T14:51:23.000Z","updated_at":"2021-05-07T15:15:18.000Z","dependencies_parsed_at":"2022-08-24T14:54:39.750Z","dependency_job_id":null,"html_url":"https://github.com/unb-libraries/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%2Ftrupal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unb-libraries%2Ftrupal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unb-libraries%2Ftrupal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unb-libraries%2Ftrupal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unb-libraries","download_url":"https://codeload.github.com/unb-libraries/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:49.701Z","updated_at":"2025-04-10T03:37:55.717Z","avatar_url":"https://github.com/unb-libraries.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trupal\nA PHP framework to auto-generate common test cases independent of the test framework used to execute those tests. \n\n# Installation\n`composer require --dev unb-libraries/trupal`\n\n## Trupal CLI\n\n### Bash\n\nCopy the following into your ```.bash_profile```\n\n```shell\n# Trupal alias\nalias trupal='./vendor/unb-libraries/trupal/Console/trupal'\n```\n\n### Fish\n\nCreate a function in ```~/.config/fish/functions/trupal.fish``` with the following content:\n\n```shell\nfunction trupal -d \"Execute Trupal commands\"\n  ./vendor/unb-libraries/trupal/Console/trupal $argv[1..-1];\nend\n```\n\n# Usage\n\n## Define a subject\nA subject is a definition of a unit to be tested. Define one as follows:\n```yaml\nid: 'test_page'\ntype: 'page'\nurl: '/test/page/1'\npublic: FALSE\ngrant_access:\n  - member\n```\n\nThis defines that there should be a non-public page under https://your.site.domain/test/page/1 which is expected to be accessible to any user with the user role `member` and inaccessible to anyone else.\n\n## Generate test cases:\nThe easiest way to generate test cases is via the Trupal CLI:\n\n```shell\ntrupal generate \u003cSUBJECT_DIR\u003e \u003cOUTPUT_DIR\u003e\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funb-libraries%2Ftrupal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funb-libraries%2Ftrupal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funb-libraries%2Ftrupal/lists"}