{"id":16494806,"url":"https://github.com/paulcwarren/ginkgo4j","last_synced_at":"2025-03-21T07:32:00.694Z","repository":{"id":7752531,"uuid":"56357942","full_name":"paulcwarren/ginkgo4j","owner":"paulcwarren","description":"A Java BDD Testing Framework (based on RSpec and Ginkgo)","archived":false,"fork":false,"pushed_at":"2024-10-03T18:51:52.000Z","size":920,"stargazers_count":27,"open_issues_count":1,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-01T04:13:44.808Z","etag":null,"topics":["bdd","eclipse","ginkgo","intellij","java","junit","rspec","spring","tdd"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulcwarren.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-16T00:50:07.000Z","updated_at":"2023-09-20T06:25:57.000Z","dependencies_parsed_at":"2023-01-13T14:29:14.894Z","dependency_job_id":null,"html_url":"https://github.com/paulcwarren/ginkgo4j","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulcwarren%2Fginkgo4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulcwarren%2Fginkgo4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulcwarren%2Fginkgo4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulcwarren%2Fginkgo4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulcwarren","download_url":"https://codeload.github.com/paulcwarren/ginkgo4j/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244120698,"owners_count":20401165,"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":["bdd","eclipse","ginkgo","intellij","java","junit","rspec","spring","tdd"],"created_at":"2024-10-11T14:15:40.525Z","updated_at":"2025-03-21T07:32:00.425Z","avatar_url":"https://github.com/paulcwarren.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ginkgo4j\n## A Java BDD Testing Framework  (based on RSpec and [ginkgo](http://onsi.github.io/ginkgo/))\n[![Build Status](https://travis-ci.org/paulcwarren/ginkgo4j.svg?branch=master)](https://travis-ci.org/paulcwarren/ginkgo4j)\n\nJump to the [docs](https://paulcwarren.github.io/ginkgo4j) to see more.\n\nFeature List:-\n- Structure your BDD-style tests expressively:\n  - Nestable Describe and Context container blocks\n  - BeforeEach and AfterEach blocks for setup and teardown\n  - It blocks that hold your assertions\n  - JustBeforeEach blocks that separate creation from configuration (also known as the subject action pattern).\n- Fast testing with parallel execution\n\n- Test runners that lets you:\n  - Focus tests through FDescribe, FContext and FIt constructs\n  - Test your Spring applications  \n\n## Requires\n- Java 8\n\n## Getting Started\n- Add the ginkgo4j to your project as a test dependency.  For a maven project add:\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.paulcwarren\u003c/groupId\u003e\n    \u003cartifactId\u003eginkgo4j\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.14\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n```\nor for a Gradle project add:\n```\ncompile 'com.github.paulcwarren:ginkgo4j:1.0.14'\n```\n\nor for a Gradle 7 project add:\n```\ndependencies {\n    testImplementation 'com.github.paulcwarren:ginkgo4j:1.0.14'\n}\n```\n\nfor other build systems see [here](http://search.maven.org/#artifactdetails%7Ccom.github.paulcwarren%7Cginkgo4j%7C1.0.7%7Cjar).\n\n- Create a junit test class\n  - Add the following imports:\n```java\nimport org.junit.runner.RunWith;\nimport static com.github.paulcwarren.ginkgo4j.Ginkgo4jDSL.*;\nimport com.github.paulcwarren.ginkgo4j.Ginkgo4jConfiguration;\nimport com.github.paulcwarren.ginkgo4j.Ginkgo4jRunner;\n```\n  - Annotate your test class with:-\n```java\n@RunWith(Ginkgo4jRunner.class)\n```\n  - And the following template:\n```java\n\t{\n\t\tDescribe(\"Replace me\", () -\u003e {\n\t\t\tIt(\"Replace me too\", () -\u003e {\n\t\t\t\tfail(\"Not yet implemented\");\n\t\t\t});\n\t\t});\n\t}\n``` \n   - Optionally, you can control the number of threads used with `@Ginkgo4jConfiguration(threads = 1)`\n\n### Getting Started with Spring\n   - Add the following imports:-\n```java\nimport org.junit.runner.RunWith;\nimport static com.github.paulcwarren.ginkgo4j.Ginkgo4jDSL.*;\nimport com.github.paulcwarren.ginkgo4j.Ginkgo4jSpringRunner;\n```\n   - Annotate your test class with:-\n```java\n@RunWith(Ginkgo4jSpringRunner.class)\n```\n   - Add the following template:\n```java\n\t{\n\t\tDescribe(\"Replace me\", () -\u003e {\n\t\t\tIt(\"Replace me too\", () -\u003e {\n\t\t\t\tfail(\"Not yet implemented\");\n\t\t\t});\n\t\t});\n\t}\n\t@Test\n\tpublic void noop() {\n\t}\n```\n\n## Screenshots\n### Eclipse\n![Eclipse](readme/eclipse-junit.png)\n\n### Intellij\n![Intellij](readme/intellij-junit.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulcwarren%2Fginkgo4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulcwarren%2Fginkgo4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulcwarren%2Fginkgo4j/lists"}