Crate bear

Source
Expand description

A dead-simple test helper for rust.

§Example

use bear::fixture;

// Get a content of 'tests/fixtures/hello.txt'
let content = fixture("hello.txt");

// Do whatever you want with it

Functions§

  • Open a file from the ‘tests/fixtures’ directory, and return its content as a String