5 releases

0.2.2 Sep 9, 2020
0.2.1 Sep 9, 2020
0.2.0 Feb 20, 2015
0.1.1 Dec 7, 2014
0.1.0 Dec 7, 2014

#485 in Testing

Download history 2/week @ 2023-11-05 5/week @ 2023-11-12 2/week @ 2023-11-19 17/week @ 2023-11-26 11/week @ 2023-12-03 2/week @ 2023-12-10 7/week @ 2023-12-17 13/week @ 2023-12-24 1/week @ 2023-12-31 2/week @ 2024-01-07 1/week @ 2024-01-14 6/week @ 2024-01-21 22/week @ 2024-01-28 2/week @ 2024-02-04 19/week @ 2024-02-11 129/week @ 2024-02-18

172 downloads per month

BSD-2-Clause

4KB

bear-i bear version-i

Dead-simple test helper for rust. See documentation for the further details.

Example

# Cargo.toml
[dev-dependencies]
bear = "0.2"
// tests/test.rs
extern crate bear;

use bear::fixture;

#[test]
fn do_some_test() {
    // Get a content of 'tests/fixtures/hello.txt'
    let content = fixture("hello.txt");

    // Do whatever you want with it
}

 


BSD 2-Clause


lib.rs:

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

No runtime deps