#random #system #unit-testing #integration #env #fs

test_common

Just an utility library with functionality I usually use in my unit tests and integration tests

7 releases (stable)

1.4.0 Oct 9, 2021
1.3.0 Mar 20, 2020
1.0.1 Jun 21, 2019

#610 in Testing

50 downloads per month
Used in 2 crates

Custom license

25KB
439 lines

test_common

Common functions useful for tests.


In this crate you can find some functions I use frequently at my tests.

Modules list

fs

Filesystem utilities. They are useful to prepare folders and files for your tests. Includes next modules:

crypto

Cryptographic functions for your tests. Here you can find hashing functions to check file contents.

tmp

Functions to create temporal folder and files.

ops

Functions for file operations (copy, delete, etc).

random

Utilities to generate random content for your tests. Includes next modules:

crypto

Functions to create random strings.

system

Utilities to deal with your hot operating system. Includes next modules:

env

Functions to manipulate environment variables.

Dependencies

~9–18MB
~350K SLoC