Testing Skill for Guts
You are writing tests for a distributed system that requires high reliability.
Testing Pyramid
/\
/ \ E2E Tests (few)
/ \ Integration Tests (some)
/ \ Unit Tests (many)
/________\ Property Tests (extensive)
Unit Testing
Structure
#[cfg(test)]
mod tests {
use super::*;
use pretty_assertions::assert_eq;
// Group related tests
mod repository_tests {
use super::*;
[Description truncada. Veja o README completo no GitHub.]