bdd 4.1.0

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/4.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:
  • Matthew Brennan Jones <matthew.brennan.jones@gmail.com>
Dependencies:
none
Versions:
4.1.0 2024-Nov-17
4.0.0 2024-Nov-17
3.1.0 2021-Jan-25
3.0.0 2021-Jan-24
2.0.0 2020-Apr-06
Show all 20 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 2 downloads this month

  • 878 downloads total

Score:
0.1
Short URL:
bdd.dub.pm