{"id":33123543,"url":"https://github.com/go-bdd/gobdd","last_synced_at":"2025-11-19T23:02:11.689Z","repository":{"id":41128669,"uuid":"189361046","full_name":"go-bdd/gobdd","owner":"go-bdd","description":"BDD framework","archived":false,"fork":false,"pushed_at":"2025-07-21T11:59:07.000Z","size":218,"stargazers_count":127,"open_issues_count":9,"forks_count":19,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-09-03T20:41:24.891Z","etag":null,"topics":["bdd","gherkin","go","golang","hacktoberfest","tests"],"latest_commit_sha":null,"homepage":"https://go-bdd.github.io/gobdd/","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/go-bdd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":"go-bdd","otechie":null,"custom":null}},"created_at":"2019-05-30T06:47:03.000Z","updated_at":"2025-08-22T23:29:52.000Z","dependencies_parsed_at":"2023-11-23T10:28:50.239Z","dependency_job_id":"58c815b8-e06a-49d4-8da7-fe9f4019971f","html_url":"https://github.com/go-bdd/gobdd","commit_stats":{"total_commits":126,"total_committers":11,"mean_commits":"11.454545454545455","dds":0.3412698412698413,"last_synced_commit":"2911ec3c5b13a67767b97bfab5832672a37ea344"},"previous_names":["bkielbasa/gobdd"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/go-bdd/gobdd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-bdd%2Fgobdd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-bdd%2Fgobdd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-bdd%2Fgobdd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-bdd%2Fgobdd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-bdd","download_url":"https://codeload.github.com/go-bdd/gobdd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-bdd%2Fgobdd/sbom","scorecard":{"id":431447,"data":{"date":"2025-08-11","repo":{"name":"github.com/go-bdd/gobdd","commit":"67fcd174535dbe97e456d0127c29e52942ac6403"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"checks":[{"name":"Code-Review","score":8,"reason":"Found 25/29 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/go-bdd/gobdd/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/go-bdd/gobdd/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/go-bdd/gobdd/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/go-bdd/gobdd/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/go-bdd/gobdd/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/go-bdd/gobdd/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/greetings.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/go-bdd/gobdd/greetings.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/greetings.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-52p9-v744-mwjj","Warn: Project is vulnerable to: GHSA-mqm2-cgpr-p4m6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T03:26:46.312Z","repository_id":41128669,"created_at":"2025-08-19T03:26:46.312Z","updated_at":"2025-08-19T03:26:46.312Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285342137,"owners_count":27155385,"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","status":"online","status_checked_at":"2025-11-19T02:00:05.673Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","gherkin","go","golang","hacktoberfest","tests"],"created_at":"2025-11-15T05:00:46.626Z","updated_at":"2025-11-19T23:02:11.681Z","avatar_url":"https://github.com/go-bdd.png","language":"Go","funding_links":["https://issuehunt.io/r/go-bdd","https://www.buymeacoffee.com/bklimczak"],"categories":["Libraries and Frameworks"],"sub_categories":["GO"],"readme":"# GOBDD\n\n[![GoDoc](https://godoc.org/github.com/go-bdd/gobdd?status.svg)](https://godoc.org/github.com/go-bdd/gobdd) [![Coverage Status](https://coveralls.io/repos/github/go-bdd/gobdd/badge.svg?branch=master)](https://coveralls.io/github/go-bdd/gobdd?branch=master)\n\nThis is a BDD testing framework. Uses gherkin for the test's syntax. From version 1.0, the API is stable.\n\n## Why did I make the library?\n\nThere is godog library for BDD tests in Go. I found this library useful but it runs as an external application which compiles our code. It has several disadvantages:\n\n-   no debugging (breakpoints) in the test. Sometimes it’s useful to go through the whole execution step by step\n-   metrics don’t count the test run this way\n-   some style checkers recognise tests as dead code\n-   it’s impossible to use built-in features like build constraints.\n-   no context in steps - so the state have to be stored somewhere else - in my opinion, it makes the maintenance harder\n\n## Quick start\n\nAdd the package to your project:\n\n```\ngo install github.com/go-bdd/gobdd@latest\n```\n\nInside `features` folder create your scenarios. Here is an example:\n\n```gherkin\nFeature: math operations\n  Scenario: add two digits\n    When I add 1 and 2\n    Then the result should equal 3\n```\n\nAdd a new test `main_test.go`:\n\n```go\nfunc add(t gobdd.StepTest, ctx gobdd.Context, var1, var2 int) {\n\tres := var1 + var2\n\tctx.Set(\"sumRes\", res)\n}\n\nfunc check(t gobdd.StepTest, ctx gobdd.Context, sum int) {\n\treceived, err := ctx.GetInt(\"sumRes\")\n\tif err != nil {\n\t\tt.Error(err)\n\t\treturn\n\t}\n\n\tif sum != received {\n\t\tt.Error(errors.New(\"the math does not work for you\"))\n\t}\n}\n\nfunc TestScenarios(t *testing.T) {\n\tsuite := gobdd.NewSuite(t)\n\tsuite.AddStep(`I add (\\d+) and (\\d+)`, add)\n\tsuite.AddStep(`the result should equal (\\d+)`, check)\n\tsuite.Run()\n}\n```\n\nand run tests\n\n```\ngo test ./...\n```\n\nMore detailed documentation can be found on the docs page: https://go-bdd.github.io/gobdd/. A sample application is available in [a separate repository](https://github.com/go-bdd/sample-app).\n\n# Contributing\n\nAll contributions are very much welcome. If you'd like to help with GoBDD development, please see open issues and submit your pull request via GitHub.\n\n# Support\n\nIf you didn't find the answer to your question in the documentation, feel free to ask us directly!\n\nPlease join us on the `#gobdd-library` channel on the [Gophers slack](https://gophers.slack.com/): You can get [an invite here](https://gophersinvite.herokuapp.com/).\nYou can find updates about the progress on Twitter: [GoBdd](https://twitter.com/Go_BDD).\n\nYou can support my work using [issuehunt](https://issuehunt.io/r/go-bdd) or by [buying me a coffee](https://www.buymeacoffee.com/bklimczak).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-bdd%2Fgobdd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-bdd%2Fgobdd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-bdd%2Fgobdd/lists"}