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
- Registered by Matthew Jones
- 4.1.0 released 22 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
-
1 downloads this week
-
130 downloads this month
-
877 downloads total
-
- Score:
- 1.8
- Short URL:
- bdd.dub.pm