https://github.com/yamadapc/bed
bed is a work-in-progress BDD testing framework for D
https://github.com/yamadapc/bed
Last synced: 9 days ago
JSON representation
bed is a work-in-progress BDD testing framework for D
- Host: GitHub
- URL: https://github.com/yamadapc/bed
- Owner: yamadapc
- License: mit
- Created: 2014-07-26T10:49:17.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-05-06T05:45:26.000Z (about 5 years ago)
- Last Synced: 2025-03-30T16:44:58.518Z (about 2 months ago)
- Language: D
- Homepage:
- Size: 590 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
bed
===
[](https://travis-ci.org/yamadapc/bed)
[](https://gitter.im/yamadapc/bed)
[](https://github.com/igrigorik/ga-beacon)
- - -**bed** is a BDD testing framework for D heavily inspired by TJ Holowaychuk's
Mocha (Node.js). It's still a WIP.## Current API
**(heavily subject to changes - I'm looking at the dangling `t` param)**
```d
import bed;int add(int x, int y)
{
return x + y;
}unittest
{describe("add(x, y)", {
it("1 + 3 = 3", {
assert(add(1, 3) == 4);
})it("1 + 10 = 4", {
assert(add(1, 10) == 11);
})it("2 + 2 = 5 (meant to fail)", {
assert(add(2, 2) == 5, "what the hell happened?");
})describe("when x is a negative number", {
it("-10 + 2 = -8", {
assert(add(-10, 2) == -8);
})it("-2 - 2 = -5", {
assert(add(-2, -2) == -5, "oh my!");
});
});
});}
```## Where I am at (approximately) with the output (reporter system):

## LICENSE
This code is licensed under the MIT License. See [LICENSE](LICENSE) for more
information.