bdd ~add_github_actions_gdc
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.0.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
- ~add_github_actions_gdc released 11 months ago
- workhorsy/BDD
- github.com/workhorsy/BDD
- BSL-1.0
- Copyright (c) 2017-2024 Matthew Brennan Jones
- Authors:
- Dependencies:
- none
- Versions:
- 
						
 Show all 20 versions4.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 
- Download Stats:
- 
						- 
								0 downloads today 
- 
								4 downloads this week 
- 
								46 downloads this month 
- 
								1085 downloads total 
 
- 
								
- Score:
- 0.5
- Short URL:
- bdd.dub.pm