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/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
- Registered by Matthew Jones
- ~master released 3 days ago
- workhorsy/BDD
- github.com/workhorsy/BDD
- BSL-1.0
- Copyright (c) 2017-2024 Matthew Brennan Jones
- Authors:
- 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 - Download Stats:
-
-
0 downloads today
-
129 downloads this week
-
129 downloads this month
-
876 downloads total
-
- Score:
- 1.7
- Short URL:
- bdd.dub.pm