{"id":13514271,"url":"https://github.com/ohler55/graphql-test-tool","last_synced_at":"2025-04-30T18:22:38.641Z","repository":{"id":47690492,"uuid":"227593160","full_name":"ohler55/graphql-test-tool","owner":"ohler55","description":"GraphQL Test Tool for running tests cases against a GraphQL server","archived":false,"fork":false,"pushed_at":"2022-12-24T02:36:43.000Z","size":98,"stargazers_count":33,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-03-30T18:43:57.085Z","etag":null,"topics":["golang","golang-package","graphql","graphql-test","gtt","test","testing","testing-tools"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/ohler55.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["ohler55"]}},"created_at":"2019-12-12T11:41:10.000Z","updated_at":"2022-12-24T02:36:48.000Z","dependencies_parsed_at":"2023-01-30T19:55:14.111Z","dependency_job_id":null,"html_url":"https://github.com/ohler55/graphql-test-tool","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohler55%2Fgraphql-test-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohler55%2Fgraphql-test-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohler55%2Fgraphql-test-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohler55%2Fgraphql-test-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohler55","download_url":"https://codeload.github.com/ohler55/graphql-test-tool/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251758520,"owners_count":21639049,"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":["golang","golang-package","graphql","graphql-test","gtt","test","testing","testing-tools"],"created_at":"2024-08-01T05:00:51.202Z","updated_at":"2025-04-30T18:22:38.612Z","avatar_url":"https://github.com/ohler55.png","language":"Go","funding_links":["https://github.com/sponsors/ohler55"],"categories":["Go"],"sub_categories":[],"readme":"# GraphQL-Test-Tool\n\nGraphQL Test Tool for running tests cases against a GraphQL server.\n\n## What It Is\n\nThe GraphQL Test Tool (gtt) helps test GraphQL servers. Tests are\nreferred to as use cases and each use case in defined in a JSON\nfile. Some of the features of gtt are:\n\n - Both GET and POST HTTP requests can be made.\n - POST content can be either JSON (application/json) or GraphQL (application/graphql).\n - Variables and operation name can be specified in the URL or in JSON content,\n - Values can be remembered and reused in subsequent steps.\n - Various display options.\n - Can be run as an application or the gtt package can be used in unit tests.\n\n## Usage\n\nThe GraphQL Test Tool can be run as an application:\n\n```\ngo run main.go -s http://localhost:6464 -i 2 -v ../examples/top.json\n```\nThe gtt package can be use for unit testing as well. Create the use case files and\n\n```\nuc, err := gtt.NewUseCase(\"myfile.json\"')\nif err != nil {\n    return err\n}\nrunner := gtt.Runner{\n    Server: \"http://localhost:6464\",\n    Base:  \"/graphql\",\n    UseCases: []*gtt.UseCase{uc},\n}\nif err = r.Run(); err != nil {\n    return err\n}\n```\n\nAll tests are driven by use case JSON files. The format is described\nin [file_format.md](file_format.md). Some example files are in the\n`examples` directory and a simple test server can be set up using the\nfiles in the `test` directory.\n\n## Installation\n\n```\ngo get github.com/ohler55/graphql-test-tool\n```\n\n## GoDocs\n\nDocumentation is at [https://ohler55.github.io/graphql-test-tool](https://ohler55.github.io/graphql-test-tool).\n\n## Releases\n\nSee [CHANGELOG.md](CHANGELOG.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohler55%2Fgraphql-test-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohler55%2Fgraphql-test-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohler55%2Fgraphql-test-tool/lists"}