bdd ~master

Behavior Driven Development testing framework for the D programming language


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

BDD

Behavior Driven Development testing framework for the D programming language

Documentation

https://workhorsy.github.io/BDD/3.1.0/

Example

import std.stdio : stdout;


int add(int a, int b) {
	return a + b;
}

unittest {
	import BDD;

	describe("math#add",
		before(delegate() {
			stdout.writeln("Before called ...");
		}),
		after(delegate() {
			stdout.writeln("After called ...");
		}),
		it("Should add positive numbers", delegate() {
			add(5, 7).shouldEqual(12);
		}),
		it("Should add negative numbers", delegate() {
			add(5, -7).shouldEqual(-2);
		})
	);
}

Generate documentation

dub --build=docs

Run unit tests

dub test

Dub version Dub downloads License

Authors:
Dependencies:
none
Versions:
3.1.0 2021-Jan-25
3.0.0 2021-Jan-24
2.0.0 2020-Apr-06
1.3.0 2017-Aug-30
1.2.0 2017-Aug-30
Show all 16 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 1 downloads this month

  • 703 downloads total

Score:
0.0
Short URL:
bdd.dub.pm