fluent-asserts-vibe 2.0.0-beta.1
Fluent assertions for Vibe.d
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:
There are a lot of ways in which you can test an web api. Unfortunately, vibe.d does not come with utilities that allows us to write
simple and nice tests. This is a library that improves your testing experience by extending the fluent-asserts library with features that help you
to test routes and Json values.
To begin
- Add the DUB dependency:
https://code.dlang.org/packages/fluent-asserts-vibe
$ dub add fluent-asserts-vivein your source files:
version(unittest) import fluent.asserts.vibe; - Use it:
unittest {
auto request = new RequestRouter(router);
request
.get("/")
.end((Response response) => () {
response.bodyString.should.not.equal("hello");
});
}
unittest {
Assert.equal(true, false, "this is a failing assert");
}
- Run the tests:
➜ dub test --compiler=ldc2
API Docs
The full documentation of the fluent-asserts can be found at: http://fluentasserts.szabobogdan.com/
License
MIT. See LICENSE for details.
- 2.0.0-beta.1 released 3 months ago
- gedaiu/fluent-asserts-vibe
- fluentasserts.szabobogdan.com/
- MIT
- Copyright © 2025, Szabo Bogdan
- Authors:
- Dependencies:
- vibe-d, fluent-asserts
- Versions:
-
Show all 21 versions2.0.0-beta.8 2026-Feb-27 2.0.0-beta.7 2026-Jan-04 2.0.0-beta.6 2026-Jan-03 2.0.0-beta.5 2026-Jan-03 2.0.0-beta.4 2025-Dec-30 - Download Stats:
-
-
0 downloads today
-
15 downloads this week
-
16 downloads this month
-
6149 downloads total
-
- Score:
- 0.6
- Short URL:
- fluent-asserts-vibe.dub.pm