tux 0.2.2

Test utilities for unit and integration tests
Documentation

This library provides miscellaneous utility functions for unit and integration tests in Rust.

Crate Features

Most crate features are enabled by default. The only exception are overly-specific features that are costly to build.

Not enabled by default:

  • server:
    • Enables support for [TestServer].
    • Includes the [warp] and [tokio] re-exports.

All other features are enabled by default:

  • diff: support for the text diff functions.
  • exec: support for the binary execution functions.
  • temp: helpers for managing temporary directories and files.
  • testdata: support for file based tests.
  • text: text utility functions.

To disable the default features and opt into specific ones, change the dependency in your Cargo.toml:

[dependencies]
tux = { version = "...", default-features = false, features = ["..."] }