6
submitted 3 years ago* (last edited 3 years ago) by erlend_sh@lemmy.world to c/rust@programming.dev

As your application grows in features you want to make sure different flows work as expected. For isolated pieces of logic it’s very practical to use the built-in approach for tests in cargo.

In other cases you may encounter a more complex scenario, with different layers, from data input to database queries. You will expect a specific output given certain input.

The Project

Consider one of my very rencent projects Gabble, a chat solution you can host yourself.

Gabble has different layers of logic, every operation will be processed in each layer in the following order:

  1. GraphQL
  2. Services (Domain Logic)
  3. Database (PostgreSQL)
no comments (yet)
sorted by: hot top new old
there doesn't seem to be anything here
this post was submitted on 06 Sep 2023
6 points (100.0% liked)

Rust

8252 readers
30 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS