{"id":15177474,"url":"https://github.com/martinohmann/godog-http","last_synced_at":"2026-02-11T20:35:51.980Z","repository":{"id":57498552,"uuid":"176354548","full_name":"martinohmann/godog-http","owner":"martinohmann","description":"Feature context for godog that adds http testing steps","archived":false,"fork":false,"pushed_at":"2019-03-20T19:16:54.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-07T06:23:16.213Z","etag":null,"topics":["bdd","cucumber","gherkin","golang","http","integration-testing"],"latest_commit_sha":null,"homepage":"","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/martinohmann.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-03-18T19:19:50.000Z","updated_at":"2020-03-20T20:14:53.000Z","dependencies_parsed_at":"2022-09-06T17:10:51.041Z","dependency_job_id":null,"html_url":"https://github.com/martinohmann/godog-http","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/martinohmann/godog-http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinohmann%2Fgodog-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinohmann%2Fgodog-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinohmann%2Fgodog-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinohmann%2Fgodog-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martinohmann","download_url":"https://codeload.github.com/martinohmann/godog-http/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinohmann%2Fgodog-http/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29344170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T20:11:40.865Z","status":"ssl_error","status_checked_at":"2026-02-11T20:10:41.637Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bdd","cucumber","gherkin","golang","http","integration-testing"],"created_at":"2024-09-27T14:22:58.084Z","updated_at":"2026-02-11T20:35:51.966Z","avatar_url":"https://github.com/martinohmann.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"godog-http\n==========\n\n[![Build Status](https://travis-ci.org/martinohmann/godog-http.svg)](https://travis-ci.org/martinohmann/godog-http)\n[![codecov](https://codecov.io/gh/martinohmann/godog-http/branch/master/graph/badge.svg)](https://codecov.io/gh/martinohmann/godog-http)\n[![Go Report Card](https://goreportcard.com/badge/github.com/martinohmann/godog-http)](https://goreportcard.com/report/github.com/martinohmann/godog-http)\n[![GoDoc](https://godoc.org/github.com/martinohmann/godog-http?status.svg)](https://godoc.org/github.com/martinohmann/godog-http)\n\ngodog-http defines a godog feature context which adds steps to test `http.Handler` implementations.\n\nInstallation\n------------\n\n```sh\ngo get -u github.com/martinohmann/godog-http\n```\n\nUsage\n-----\n\nExample feature:\n\n```\nFeature: As a developer, I want to be able to setup and verify http routers in\n  godog features.\n\n  Scenario: I make a JSON request\n\n    Given I have following request headers:\n      | name   | value       |\n      | X-Auth | supersecret |\n    And I have following request body:\n      \"\"\"\n      {\"foo\":{\"bar\":{\"baz\":1}},\"something\":\"else\"}\n      \"\"\"\n    When I send \"POST\" request to \"/foo\"\n    Then the response code should be 200\n    And the response should contain following json:\n      \"\"\"\n      {\"something\":\"else\",\"foo\":{\"bar\":{\"baz\":1}}}\n      \"\"\"\n    And the response should have following headers:\n      | name         | value            |\n      | Content-Type | application/json |\n```\n\nCheck [`feature_context_test.go`](feature_context_test.go) and the\n[`features/`](features/) directory for more usage examples.\n\nLicense\n-------\n\nThe source code of godog-http is released under the MIT License. See the bundled\nLICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinohmann%2Fgodog-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartinohmann%2Fgodog-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinohmann%2Fgodog-http/lists"}