All Projects → paulcwarren → ginkgo4j

paulcwarren / ginkgo4j

Licence: other
A Java BDD Testing Framework (based on RSpec and Ginkgo)

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to ginkgo4j

Everydayrails Rspec 2017
Sample source for the 2017 edition of Everyday Rails Testing with RSpec.
Stars: ✭ 280 (+1020%)
Mutual labels:  tdd, rspec, bdd
Nspec
A battle hardened testing framework for C# that's heavily inspired by Mocha and RSpec.
Stars: ✭ 242 (+868%)
Mutual labels:  tdd, rspec, bdd
Public
Repository for wallaby.js questions and issues
Stars: ✭ 662 (+2548%)
Mutual labels:  tdd, intellij, bdd
Spectrum
A BDD-style test runner for Java 8. Inspired by Jasmine, RSpec, and Cucumber.
Stars: ✭ 142 (+468%)
Mutual labels:  rspec, bdd, junit
Aruba
Test command-line applications with Cucumber-Ruby, RSpec or Minitest. The most up to date documentation can be found on Cucumber.Pro (https://app.cucumber.pro/projects/aruba)
Stars: ✭ 900 (+3500%)
Mutual labels:  tdd, rspec, bdd
Lightbdd
BDD framework allowing to create easy to read and maintain tests.
Stars: ✭ 195 (+680%)
Mutual labels:  tdd, bdd
Cucumber Rust
Cucumber testing framework for Rust. Fully native, no external test runners or dependencies.
Stars: ✭ 210 (+740%)
Mutual labels:  tdd, bdd
Pester
Pester is the ubiquitous test and mock framework for PowerShell.
Stars: ✭ 2,620 (+10380%)
Mutual labels:  tdd, bdd
Bandit
Human-friendly unit testing for C++11
Stars: ✭ 240 (+860%)
Mutual labels:  tdd, bdd
Should.js
BDD style assertions for node.js -- test framework agnostic
Stars: ✭ 1,908 (+7532%)
Mutual labels:  tdd, bdd
Junit Dataprovider
A TestNG like dataprovider runner for JUnit with many additional features
Stars: ✭ 226 (+804%)
Mutual labels:  tdd, junit
chai
BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.
Stars: ✭ 7,842 (+31268%)
Mutual labels:  tdd, bdd
Catch2
A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
Stars: ✭ 14,330 (+57220%)
Mutual labels:  tdd, bdd
Dockerspec
A small Ruby Gem to run RSpec and Serverspec, Infrataster and Capybara tests against Dockerfiles or Docker images easily.
Stars: ✭ 181 (+624%)
Mutual labels:  tdd, rspec
Add
Разработка с управляемым качеством на 1С
Stars: ✭ 210 (+740%)
Mutual labels:  tdd, bdd
Spek
A specification framework for Kotlin
Stars: ✭ 2,143 (+8472%)
Mutual labels:  tdd, bdd
watchdog
IntelliJ & Eclipse plugin for monitoring how Java applications are developed and tested
Stars: ✭ 18 (-28%)
Mutual labels:  eclipse, intellij
j8spec
Library that allows tests written in Java to follow the BDD style introduced by RSpec and Jasmine.
Stars: ✭ 45 (+80%)
Mutual labels:  rspec, junit
justtestlah
Dynamic test framework for web and mobile applications
Stars: ✭ 43 (+72%)
Mutual labels:  bdd, junit
bdd
Given/When/Then/And/But output to RSpec and Minitest
Stars: ✭ 33 (+32%)
Mutual labels:  rspec, bdd

Ginkgo4j

A Java BDD Testing Framework (based on RSpec and ginkgo)

Build Status

Jump to the docs to see more.

Feature List:-

  • Structure your BDD-style tests expressively:

    • Nestable Describe and Context container blocks
    • BeforeEach and AfterEach blocks for setup and teardown
    • It blocks that hold your assertions
    • JustBeforeEach blocks that separate creation from configuration (also known as the subject action pattern).
  • Fast testing with parallel execution

  • Test runners that lets you:

    • Focus tests through FDescribe, FContext and FIt constructs
    • Test your Spring applications

Requires

  • Java 8

Getting Started

  • Add the ginkgo4j to your project as a test dependency. For a maven project add:
<dependency>
    <groupId>com.github.paulcwarren</groupId>
    <artifactId>ginkgo4j</artifactId>
    <version>1.0.14</version>
    <scope>test</scope>
</dependency>

or for a Gradle project add:

compile 'com.github.paulcwarren:ginkgo4j:1.0.14'

or for a Gradle 7 project add:

dependencies {
    testImplementation 'com.github.paulcwarren:ginkgo4j:1.0.14'
}

for other build systems see here.

  • Create a junit test class
    • Add the following imports:
import org.junit.runner.RunWith;
import static com.github.paulcwarren.ginkgo4j.Ginkgo4jDSL.*;
import com.github.paulcwarren.ginkgo4j.Ginkgo4jConfiguration;
import com.github.paulcwarren.ginkgo4j.Ginkgo4jRunner;
  • Annotate your test class with:-
@RunWith(Ginkgo4jRunner.class)
  • And the following template:
	{
		Describe("Replace me", () -> {
			It("Replace me too", () -> {
				fail("Not yet implemented");
			});
		});
	}
  • Optionally, you can control the number of threads used with @Ginkgo4jConfiguration(threads = 1)

Getting Started with Spring

  • Add the following imports:-
import org.junit.runner.RunWith;
import static com.github.paulcwarren.ginkgo4j.Ginkgo4jDSL.*;
import com.github.paulcwarren.ginkgo4j.Ginkgo4jSpringRunner;
  • Annotate your test class with:-
@RunWith(Ginkgo4jSpringRunner.class)
  • Add the following template:
	{
		Describe("Replace me", () -> {
			It("Replace me too", () -> {
				fail("Not yet implemented");
			});
		});
	}
	@Test
	public void noop() {
	}

Screenshots

Eclipse

Eclipse

Intellij

Intellij

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].