[][src]Crate datatest_stable

datatest-stable is a very simple test harness intended to meet some of the needs provided by the datatest crate when using a stable rust compiler without using the RUSTC_BOOTSTRAP hack to use nightly features on the stable track.

In order to setup data-driven tests for a particular test target you must do the following:

  1. Configure the test target by setting the following in the Cargo.toml
[[test]]
name = "<test target name>"
harness = false
  1. Call the datatest_stable::harness!(testfn, root, pattern) macro with the following parameters:

The three parameters can be repeated if you have multiple sets of data-driven tests to be run: datatest_stable::harness!(testfn1, root1, pattern1, testfn2, root2, pattern2)

Modules

utils

Macros

harness

datatest-stable test harness entry point. Should be declared in the test module.

Structs

Requirements

Functions

runner

Type Definitions

Result