Skip to content

pleme-io/pleme-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pleme-testing

Testing utilities library for Pleme platform - test fixtures, testcontainers, integration helpers

Installation

[dependencies]
pleme-testing = "0.1"

Usage

use pleme_testing::{fixtures::UserFixture, containers::PostgresContainer};

#[tokio::test]
async fn test_with_db() {
    let pg = PostgresContainer::start().await;
    let user = UserFixture::builder().email("test@example.com").build();
    // ...
}

Feature Flags

Feature Description
containers Testcontainers (Postgres, Redis)
database Database testing helpers
http HTTP testing with reqwest
integration pleme-database + pleme-error integration
full All features enabled

Enable features in your Cargo.toml:

pleme-testing = { version = "0.1", features = ["full"] }

Development

This project uses Nix for reproducible builds:

nix develop            # Dev shell with Rust toolchain
nix run .#check-all    # cargo fmt + clippy + test
nix run .#publish      # Publish to crates.io (--dry-run supported)
nix run .#regenerate   # Regenerate Cargo.nix

License

MIT - see LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors