{"id":22371779,"url":"https://github.com/ply-ct/ply-demo","last_synced_at":"2025-07-30T20:32:22.571Z","repository":{"id":31868413,"uuid":"129553243","full_name":"ply-ct/ply-demo","owner":"ply-ct","description":"Example project with Ply autotests","archived":false,"fork":false,"pushed_at":"2024-11-23T21:02:58.000Z","size":1484,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-11-23T22:17:51.431Z","etag":null,"topics":["example-project","graphql","ply","rest-api","testing","typescript","workflow"],"latest_commit_sha":null,"homepage":"https://ply-ct.github.io/ply/","language":"TypeScript","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/ply-ct.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":"2018-04-14T20:47:17.000Z","updated_at":"2024-11-23T21:03:01.000Z","dependencies_parsed_at":"2024-11-10T05:16:10.861Z","dependency_job_id":null,"html_url":"https://github.com/ply-ct/ply-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ply-ct%2Fply-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ply-ct%2Fply-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ply-ct%2Fply-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ply-ct%2Fply-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ply-ct","download_url":"https://codeload.github.com/ply-ct/ply-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228187076,"owners_count":17882246,"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":["example-project","graphql","ply","rest-api","testing","typescript","workflow"],"created_at":"2024-12-04T20:29:39.794Z","updated_at":"2024-12-04T20:29:41.177Z","avatar_url":"https://github.com/ply-ct.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ply-demo\n\u003ca href=\"https://github.com/ply-ct/ply-demo/actions\"\u003e\n    \u003cimg src=\"https://github.com/ply-ct/ply-demo/workflows/build/badge.svg\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/ply-ct/ply-demo/actions\"\u003e\n  \u003cimg src=\"https://ply-ct.org/badges/ply-ct/ply-demo/workflows/build\" /\u003e\n\u003c/a\u003e\n\nIllustrates how to use [Ply](https://ply-ct.github.io/ply/) for automated API testing. \nIncludes an example GitHub Actions workflow to demonstrate Ply continuous testing.\n\n## Run a request suite\n```\ngit clone https://github.com/ply-ct/ply-demo.git\ncd ply-demo\nnpm install\nnpx ply test/requests/movie-queries.ply.yaml\n```\n\nThe output indicates that all movie-queries requests have passed:\n```\nPly version: \"3.0.40\"\nRequest 'moviesByYearAndRating' submitted at 4/11/2022, 14:01:18:716\nRequest 'moviesByYearAndRating' PASSED in 32 ms\nRequest 'movieById' submitted at 4/11/2022, 14:01:18:745\nRequest 'movieById' PASSED in 8 ms\nRequest 'greatFilmsOf1935' submitted at 4/11/2022, 14:01:18:754\nRequest 'greatFilmsOf1935' PASSED in 7 ms\nRequest 'bestMovieOf1935' submitted at 4/11/2022, 14:01:18:762\nRequest 'bestMovieOf1935' PASSED in 6 ms\nRequest 'stinkersOf1932' submitted at 4/11/2022, 14:01:18:769\nRequest 'stinkersOf1932' PASSED in 7 ms\n\nOverall Results: {\"Passed\":5,\"Failed\":0,\"Errored\":0,\"Pending\":0,\"Submitted\":0}\nOverall Time: 126 ms\n```\n\n## Run all tests\n```\ncd ply-demo\nnpm test\n```\nIn package.json scripts, \"pretest\" starts [ply-movies](https://github.com/ply-ct/ply-movies#readme),\nwhich serves up the REST API exercised by many of our Ply [requests](test/requests) and [cases](test/cases).\n\n**Note**: Run [ply-movies locally](https://ply-ct.github.io/ply/topics/cases#ply-movies) in order for \ndestructive tests to succeed.\n\n## Visual Studio Code\nInstall Ply's [VS Code extension](https://github.com/ply-ct/vscode-ply#vscode-ply) to run tests in \nthe Test Explorer sidebar.\n\n## GitHub Workflow\nThis simple CI [workflow](https://github.com/ply-ct/ply-demo/blob/main/.github/workflows/build-test.yml)\nshows how to use npm scripts to automatically execute all requests and cases whenever a commit is pushed\non the main branch.\n\n## Ply GitHub Action\nThis readme file includes the [Ply Action](https://github.com/ply-ct/ply-action#readme) status badge.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fply-ct%2Fply-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fply-ct%2Fply-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fply-ct%2Fply-demo/lists"}